Some very useful Ubuntu tips.

Posted: September 15, 2017. At: 9:26 AM. This was 5 months ago. Post ID: 11338
Page permalink.
WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters. These cookies expire two weeks after they are set.

To find out what repository a package came from, use the dpkg -s command.

[email protected]:~$ dpkg -s zdoom
Package: zdoom
Status: install ok installed
Priority: optional
Section: web
Installed-Size: 9330
Maintainer: DRD Team <admin@maniacsvault.net>
Architecture: amd64
Version: 2.8.1
Depends: libc6, libstdc++6, zlib1g, bzip2, libgtk2.0-0
Recommends: timidity, libfluidsynth1
Description: Advanced Doom source port.

This tells me that the package came from the DRD Team repo.

List the contents of a deb package this way. Use the dpkg -c command.

[email protected]:~$ dpkg -c Downloads/gzdoom_3.1.0-1~getdeb1_amd64.deb 
drwxr-xr-x root/root         0 2017-06-01 05:29 ./
drwxr-xr-x root/root         0 2017-06-01 05:29 ./usr/
drwxr-xr-x root/root         0 2017-06-01 05:29 ./usr/lib/
drwxr-xr-x root/root         0 2017-06-01 05:29 ./usr/lib/games/
drwxr-xr-x root/root         0 2017-06-01 05:29 ./usr/lib/games/gzdoom/
-rwxr-xr-x root/root   9791552 2017-06-01 05:29 ./usr/lib/games/gzdoom/gzdoom
-rw-r--r-- root/root   1491464 2017-06-01 05:29 ./usr/lib/games/gzdoom/libfmodex-4.44.so
drwxr-xr-x root/root         0 2017-06-01 05:29 ./usr/share/
drwxr-xr-x root/root         0 2017-06-01 05:29 ./usr/share/games/
drwxr-xr-x root/root         0 2017-06-01 05:29 ./usr/share/games/gzdoom/
-rw-r--r-- root/root     23823 2017-06-01 05:29 ./usr/share/games/gzdoom/lights.pk3
-rw-r--r-- root/root    247412 2017-06-01 05:29 ./usr/share/games/gzdoom/brightmaps.pk3
-rw-r--r-- root/root   1024712 2017-06-01 05:29 ./usr/share/games/gzdoom/gzdoom.pk3
drwxr-xr-x root/root         0 2017-06-01 05:29 ./usr/share/games/doom/
drwxr-xr-x root/root         0 2017-06-01 05:29 ./usr/share/doc/
drwxr-xr-x root/root         0 2017-06-01 05:29 ./usr/share/doc/gzdoom/
-rw-r--r-- root/root      4951 2016-09-20 01:57 ./usr/share/doc/gzdoom/copyright
-rw-r--r-- root/root       631 2017-06-01 04:23 ./usr/share/doc/gzdoom/changelog.Debian.gz
drwxr-xr-x root/root         0 2017-06-01 05:29 ./usr/share/applications/
-rw-r--r-- root/root       129 2016-09-20 01:57 ./usr/share/applications/gzdoom.desktop
drwxr-xr-x root/root         0 2017-06-01 05:29 ./usr/share/pixmaps/
-rw-r--r-- root/root       962 2016-09-20 01:57 ./usr/share/pixmaps/gzdoom.xpm
drwxr-xr-x root/root         0 2017-06-01 05:29 ./usr/games/
-rwxr-xr-x root/root       407 2016-09-20 01:57 ./usr/games/gzdoom
lrwxrwxrwx root/root         0 2017-06-01 05:29 ./usr/lib/games/gzdoom/lights.pk3 -> ../../../share/games/gzdoom/lights.pk3
lrwxrwxrwx root/root         0 2017-06-01 05:29 ./usr/lib/games/gzdoom/brightmaps.pk3 -> ../../../share/games/gzdoom/brightmaps.pk3
lrwxrwxrwx root/root         0 2017-06-01 05:29 ./usr/lib/games/gzdoom/gzdoom.pk3 -> ../../../share/games/gzdoom/gzdoom.pk3

Print information about a deb package. Using the dpkg -I command.

[email protected]:~$ dpkg -I Downloads/gzdoom_3.1.0-1~getdeb1_amd64.deb 
 new debian package, version 2.0.
 size 4929786 bytes: control archive=941 bytes.
     671 bytes,    17 lines      control              
     669 bytes,    10 lines      md5sums              
 Package: gzdoom
 Version: 3.1.0-1~getdeb1
 Architecture: amd64
 Maintainer: GetDeb Package Ninjas <package.ninjas@getdeb.net>
 Installed-Size: 12314
 Depends: libbz2-1.0, libc6 (>= 2.15), libgcc1 (>= 1:3.0), libjpeg8 (>= 8c), libsdl2-2.0-0 (>= 2.0.4), libstdc++6 (>= 5.2), zlib1g (>= 1:1.1.4), zenity
 Section: games
 Priority: optional
 Homepage: http://www.osnanet.de/c.oelckers/gzdoom/
 Description: OpenGL Doom engine
  This is a Doom source port based on ZDoom. It features an
  OpenGL renderer and lots of new features, among them:
    - 3D floors
    - Dynamic lights
    - Quake2/Unreal style skyboxes
    - True color texture support
    - Model support (limited at the moment)

List available packages with wildcards. Using the dpkg -l vim* command.

jason@jason-desktop:~/Downloads$ dpkg -l vim*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                          Version                     Architecture                Description
+++-=============================================-===========================-===========================-================================================================================================
un  vim                                           <none>                      <none>                      (no description available)
un  vim-athena                                    <none>                      <none>                      (no description available)
ii  vim-common                                    2:8.0.0095-1ubuntu3         all                         Vi IMproved - Common files
un  vim-gnome                                     <none>                      <none>                      (no description available)
un  vim-gtk                                       <none>                      <none>                      (no description available)
un  vim-gtk3                                      <none>                      <none>                      (no description available)
un  vim-gui-common                                <none>                      <none>                      (no description available)
un  vim-nox                                       <none>                      <none>                      (no description available)
ii  vim-tiny                                      2:8.0.0095-1ubuntu3         amd64                       Vi IMproved - enhanced vi editor - compact version

Find out which Ubuntu package installed a particular file. Using the dpkg -S command.

jason@jason-desktop:~/Downloads$ dpkg -S /usr/bin/zdoom
zdoom: /usr/bin/zdoom

This tells us that the zdoom package installed this file.

No comments have been made. Use this form to start the conversation :)

Leave a Reply