Skip to content

u/FinitelyGenerated

In this archive from Jun 2015 to Oct 2021

0
posts
393
comments
0
media
1.8k
score

Top comments

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:

pacman /etc/
pacman /etc/makepkg.conf
pacman /etc/pacman.conf
pacman /var/
pacman /var/cache/
pacman /var/cache/pacman/
pacman /var/cache/pacman/pkg/
pacman /var/lib/
pacman /var/lib/pacman/

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.

95 points

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.

50 points

You 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 / --age parameter.

29 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.