mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
Added dpkg notes to the knowledge base
This commit is contained in:
@@ -3,8 +3,10 @@
|
||||
## Further readings
|
||||
|
||||
- The [APT] package manager
|
||||
- [Dpkg]
|
||||
- [Advice for new users on not breaking their Debian system]
|
||||
|
||||
[apt]: apt.md
|
||||
[dpkg]: dpkg.md
|
||||
|
||||
[advice for new users on not breaking their debian system]: https://wiki.debian.org/DontBreakDebian
|
||||
|
||||
27
knowledge base/linux/dkpg.md
Normal file
27
knowledge base/linux/dkpg.md
Normal file
@@ -0,0 +1,27 @@
|
||||
# Dpkg
|
||||
|
||||
## TL;DR
|
||||
|
||||
```shell
|
||||
# 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
|
||||
```
|
||||
|
||||
## Further readings
|
||||
|
||||
- [How to check if dpkg-architecture --list has all the architectures?]
|
||||
|
||||
[how to check if dpkg-architecture --list has all the architectures?]: https://askubuntu.com/questions/852115/how-to-check-if-dpkg-architecture-list-has-all-the-architectures#852120
|
||||
Reference in New Issue
Block a user