I learned a lot by just looking around my own files.
For instance, take a .pkg.tar.zst file. That's a tarball so it can be extracted or you can use tar tf <filename> to list the file contents. Let's take a small package. You can do
cp /var/cache/pacman/pkg/zstd-1.4.9-1-x86_64.pkg.tar.zst /tmp
cd /tmp
tar tf zstd-1.4.9-1-x86_64.pkg.tar.zst
to copy zstd-1.4.9-1-x86_64.pkg.tar.zst to /tmp and list what files it contains. You'll see three files:
.BUILDINFO
.MTREE
.PKGINFO
followed by a bunch of stuff in /usr. Then you can use tar xf to extract the archive and check out what's inside those three dot-files.
Now let's find out something else. If you do pacman -Ql pacman you will see a list of files owned by the pacman package. Everything in /usr is static and if you do pacman -Ql pacman | grep -v /usr to get every other file, you will see this:
These are all the non-static files and directories owned by pacman. You might be wondering now: what about /etc/pacman.d/? Try using pacman -Qo to find out what's up about that.
So you may already have some familiarity with /etc/makepkg.conf and /etc/pacman.conf and /var/cache/pacman/. But what about /var/lib/pacman/? What's in there? Have a look for yourself.
Some helpful commands:
file <file> find out what kind of file something is.
zcat <gzipped file> unzips a file and outputs it to stdout (several files in /var/lib/pacman/ are gzipped). See also zless, zgrep, etc.
So far it's just the RFC (request for comment) that was merged (accepted).
Once the work is done, possibly it will be automatic. The default is Architecture = auto in /etc/pacman.conf which reads it from uname -m except uname -m just outputs x86_64 so probably some extra work will need to be done to detect if the newer instructions are supported. We'll just have to see what solutions the developers come up with. Once that's done I expect a news post.
Sometimes even well-maintained mirrors don't sync for a few days for one reason or another.
Generally you can fix this by simply commenting out your primary mirror and letting pacman use your secondary mirror. Otherwise there's reflector with it's -a / --age parameter.
I learned a lot by just looking around my own files.
For instance, take a
.pkg.tar.zstfile. That's a tarball so it can be extracted or you can usetar tf <filename>to list the file contents. Let's take a small package. You can doto copy
zstd-1.4.9-1-x86_64.pkg.tar.zstto/tmpand list what files it contains. You'll see three files:followed by a bunch of stuff in
/usr. Then you can usetar xfto extract the archive and check out what's inside those three dot-files.Now let's find out something else. If you do
pacman -Ql pacmanyou will see a list of files owned by the pacman package. Everything in/usris static and if you dopacman -Ql pacman | grep -v /usrto get every other file, you will see this:These are all the non-static files and directories owned by pacman. You might be wondering now: what about
/etc/pacman.d/? Try usingpacman -Qoto find out what's up about that.So you may already have some familiarity with
/etc/makepkg.confand/etc/pacman.confand/var/cache/pacman/. But what about/var/lib/pacman/? What's in there? Have a look for yourself.Some helpful commands:
file <file>find out what kind of file something is.zcat <gzipped file>unzips a file and outputs it to stdout (several files in/var/lib/pacman/are gzipped). See alsozless,zgrep, etc.So far it's just the RFC (request for comment) that was merged (accepted).
Once the work is done, possibly it will be automatic. The default is
Architecture = autoin/etc/pacman.confwhich reads it fromuname -mexceptuname -mjust outputsx86_64so probably some extra work will need to be done to detect if the newer instructions are supported. We'll just have to see what solutions the developers come up with. Once that's done I expect a news post.sudo -eYou can see here: https://archlinux.org/mirrors/status/ that some mirrors are 100 hours out of sync (~4 days), some 300, some 900 (over 1 month).
Sometimes even well-maintained mirrors don't sync for a few days for one reason or another.
Generally you can fix this by simply commenting out your primary mirror and letting pacman use your secondary mirror. Otherwise there's reflector with it's
-a / --ageparameter.Edit: apparently this was fixed a week and a half ago but the news never circulated very far. https://bugs.archlinux.org/task/68312