4

I want to list all the packages installed for a specific architecture, in this case i386, and if possible, install the package from another, in this case amd64. How would I go about doing this?

0

2 Answers 2

13

To find the packages of architecture i386, you could filter the output of dpkg -l, where lines that start with ii, and column 4 is i386:

dpkg -l | awk '/^ii/ && $4 == "i386" { print }'

To install the package of the amd64 architecture, you could use :amd64 suffix of the package name with the install command.

1
  • apt list --installed | awk '$3 == "i386" { print }' output seems more readable to me
    – Expurple
    Oct 4, 2022 at 10:23
0

You can use apt list as well as dpkg-query --list to get installed applications.

Use man apt and man dpkg-query to find what other functions it has.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.