Files
oam/knowledge base/dpkg.md
2023-01-30 12:59:09 +01:00

819 B

Dpkg

TL;DR

# Reconfigure a package.
dpkg-reconfigure --priority low unattended-upgrades

# add an extra architecture
dpkg --add-architecture i386

# list extra architectures
dpkg --print-foreign-architectures

# list available extra architectures
dpkg-architecture --list-known

#list all installed packages of the i386 architecture
dpkg --get-selections | grep i386 | awk '{print $1}'

# remove the i386 architecture
apt-get purge $(dpkg --get-selections | grep --color=never i386 | awk '{print $1}')
dpkg --remove-architecture i386

Sources