Debian Packages und was drin steckt

Information über Debian Packages und die dazugehörigen Dateien.

Zu welchem Package gehört die Datei?

Als Beispiel wollen wir wissen, zu wechem Package top gehört.

$ type top
top is /usr/bin/top

$ dpkg -S /usr/bin/top
procps: /usr/bin/top

Die Datei top gehört also zum Package procps

Welche Dateien stecken in einem installierten Package?

$ dpkg -L less
/.
/usr
/usr/bin
/usr/bin/less
/usr/bin/lessecho
/usr/bin/lesskey
/usr/bin/lesspipe
/usr/lib
/usr/lib/mime
/usr/lib/mime/packages
/usr/lib/mime/packages/less
/usr/share
/usr/share/doc
/usr/share/doc/less
/usr/share/doc/less/LESSOPEN
/usr/share/doc/less/NEWS.gz
/usr/share/doc/less/README.Debian
/usr/share/doc/less/changelog.Debian.gz
/usr/share/doc/less/copyright
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/less.1.gz
/usr/share/man/man1/lessecho.1.gz
/usr/share/man/man1/lesskey.1.gz
/usr/share/man/man1/lesspipe.1.gz
/usr/bin/lessfile
/usr/share/man/man1/lessfile.1.gz

Welche Dateien stecken in einem nicht installieren Package:

$ dpkg -c less.deb 
drwxr-xr-x root/root         0 2022-01-27 03:58 ./
drwxr-xr-x root/root         0 2022-01-27 03:58 ./usr/
drwxr-xr-x root/root         0 2022-01-27 03:58 ./usr/bin/
-rwxr-xr-x root/root    202968 2022-01-27 03:58 ./usr/bin/less
-rwxr-xr-x root/root     14504 2022-01-27 03:58 ./usr/bin/lessecho
-rwxr-xr-x root/root     24120 2022-01-27 03:58 ./usr/bin/lesskey
-rwxr-xr-x root/root      9047 2022-01-27 03:51 ./usr/bin/lesspipe
drwxr-xr-x root/root         0 2022-01-27 03:58 ./usr/lib/
drwxr-xr-x root/root         0 2022-01-27 03:58 ./usr/lib/mime/
drwxr-xr-x root/root         0 2022-01-27 03:58 ./usr/lib/mime/packages/
-rw-r--r-- root/root        90 2022-01-27 03:51 ./usr/lib/mime/packages/less
drwxr-xr-x root/root         0 2022-01-27 03:58 ./usr/share/
drwxr-xr-x root/root         0 2022-01-27 03:58 ./usr/share/doc/
drwxr-xr-x root/root         0 2022-01-27 03:58 ./usr/share/doc/less/
-rw-r--r-- root/root      2117 2021-10-19 06:06 ./usr/share/doc/less/LESSOPEN
-rw-r--r-- root/root     11046 2021-06-03 19:45 ./usr/share/doc/less/NEWS.gz
-rw-r--r-- root/root       394 2021-10-19 06:06 ./usr/share/doc/less/README.Debian
-rw-r--r-- root/root     12792 2022-01-27 03:58 ./usr/share/doc/less/changelog.Debian.gz
-rw-r--r-- root/root      2048 2022-01-27 03:51 ./usr/share/doc/less/copyright
drwxr-xr-x root/root         0 2022-01-27 03:58 ./usr/share/man/
drwxr-xr-x root/root         0 2022-01-27 03:58 ./usr/share/man/man1/
-rw-r--r-- root/root     22947 2022-01-27 03:58 ./usr/share/man/man1/less.1.gz
-rw-r--r-- root/root       707 2022-01-27 03:58 ./usr/share/man/man1/lessecho.1.gz
-rw-r--r-- root/root      3537 2022-01-27 03:58 ./usr/share/man/man1/lesskey.1.gz
-rw-r--r-- root/root      1926 2022-01-27 03:58 ./usr/share/man/man1/lesspipe.1.gz
lrwxrwxrwx root/root         0 2022-01-27 03:58 ./usr/bin/lessfile -> lesspipe
lrwxrwxrwx root/root         0 2022-01-27 03:58 ./usr/share/man/man1/lessfile.1.gz -> lesspipe.1.gz