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?
2 Answers
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.
-
apt list --installed | awk '$3 == "i386" { print }'
output seems more readable to me– ExpurpleOct 4, 2022 at 10:23
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.