User Tools

Site Tools


debian:apt

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
debian:apt [2025/10/04 12:25] – [Infos zu Paketen] msdebian:apt [2025/11/14 14:00] (current) ms
Line 79: Line 79:
 apt-cache pkgnames apt-cache pkgnames
 </code> </code>
- 
  
 ==== Nicht mehr benötigte Pakete löschen ==== ==== Nicht mehr benötigte Pakete löschen ====
Line 86: Line 85:
 apt --purge autoremove apt --purge autoremove
 </code> </code>
 +
 +==== Installierte Pakete in einem Root-Filesystem auflisten ====
 +Root-Filesystem mounten
 +<code>
 +mount /dev/sda2 /mnt/debian_bak
 +
 +dpkg --root=/mnt/debian_bak --list
 +
 +dpkg --admindir=/mnt/debian_bak/var/lib/dpkg --list
 +</code>
 +
 +Pakete bei einer LXC-Installation auflisten
 +<code>
 +ls -al /var/lib/lxc/
 +deb-inst/
 +
 +dpkg --root=/var/lib/lxc/deb-inst/rootfs --list
 +
 +dpkg --admindir=/var/lib/lxc/deb-inst/rootfs/var/lib/dpkg --list
 +</code>
 +
  
debian/apt.1759573547.txt.gz · Last modified: 2025/10/04 12:25 by ms

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki