Skip to content

Check for installed 32-bit applications on system? Good idea to remove all lib32*?

  • If I want to check for installed 32-bit applications or packages on system, what's the best way to go about it? ls -al /var/cache/pacman/pkg | grep i686 checks for cache(?), but that's not ideal because cache might have been cleaned.

  • If no 32-bit packages are installed, that means it's safe to disable the default Arch repo multilib? No caveats, since I can always enable it if I need to explicitly install 32-bit applications, right?

  • Does that mean I never need to install 32-bit package counterpart, e.g. there are packages like vulkan-radeon and lib32-vulkan-radeon, and libva-mesa-driver and lib32-libva-mesa-driver--I only need to install packages without the prefix lib32- for any packages which also have this prefix? Or is that not necessarily the case and I might want lib32-<package> along with <package> at times? Assuming I have a 64-bit processor, which I do.

  • Would it be correct to assume that on a 64-bit system, any lib32* packages installed also have a 64-bit counterpart of the same name without the lib32- prefix installed? Would it be a good idea to remove all lib32* packages on my system, which I assume were only installed alongside their 64-bit package counterpart since I had multilib repo enabled originally when I installed Arch?

Much appreciated.

0 points1 comments
Open on Reddit
About this post
Posted
Archived
Score
0 · 100% up
Kind
Text
ID
az0eb9

Author

62
posts
105
comments
1
media
View profile

1 comment

If I want to check for installed 32-bit applications or packages on system, what's the best way to go about it?

You could check for all packages installed from multilib using pacman -Sl multilib | grep -F '[installed]'. Note that this does not include 32bit packages installed from the AUR.

If no 32-bit packages are installed, that means it's safe to disable the default Arch repo multilib?

Yes, it is safe. lib32- packages are only required by 32bit applications, which are increasingly rare. (Wine and steam are notable exceptions)

Does that mean I never need to install 32-bit package counterpart

If you do not intend to run 32bit applications that require the specific library, there is no need for the lib32- package. Generally, there is no reason to explicitly install lib32- packages as pacman is handling dependencies for you.

Would it be correct to assume that on a 64-bit system, any lib32* packages installed also have a 64-bit counterpart of the same name without the lib32- prefix installed? Would it be a good idea to remove all lib32* packages on my system, which I assume were only installed alongside their 64-bit package counterpart since I had multilib repo enabled originally when I installed Arch?

lib32- packages are only installed as dependencies for 32bit packages. They are not automatically installed as counterparts for 64bit libraries/packages. You can list packages that are no longer required by any other (explicitly installed) packages using pacman -Qdt.

I haven’t used the multilib repository or any lib32- packages for years, so this is definitely possible.

5 points

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.