Debian package management: Difference between revisions

From wiki
Jump to navigation Jump to search
imported>Johayek
imported>Johayek
Line 21: Line 21:


: # which packages are installed (together with details)?
: # which packages are installed (together with details)?
: $ ... --list
: $ dpkg-query --list


: # details of an installed package
: # is there an installed package, that sounds like XYZ?
: $ ... --list PACKAGE
: $ dpkg-query --list | fgrep XYZ


: # what's the content of an installed package?
: # details of an installed package (that you know the name of, e.g. PACKAGE)
: $ ... --listfiles ...
: $ dpkg-query --list PACKAGE
 
: # what's the content of an installed package (e.g. PACKAGE)?
: $ dpkg-query --listfiles PACKAGE


: # ...
: # ...

Revision as of 10:10, 16 April 2018

# the Debian APT = Advanced Packaging Tool
# update and upgrade
$ sudo apt-get update # update is used to resynchronize the package index files from their sources
$ sudo apt-get upgrade # upgrade is used to install the newest versions of all packages currently installed on the system from the sources enumerated in /etc/apt/sources.list

dealing with packages files (.deb)

# which files are included? will be created from this package file?
$ ...
# what's the official package name?
$ ...
# what's the content of this package file?
$ ...
# ...
$ ...

dealing with installed packages

# which packages are installed (together with details)?
$ dpkg-query --list
# is there an installed package, that sounds like XYZ?
$ dpkg-query --list | fgrep XYZ
# details of an installed package (that you know the name of, e.g. PACKAGE)
$ dpkg-query --list PACKAGE
# what's the content of an installed package (e.g. PACKAGE)?
$ dpkg-query --listfiles PACKAGE
# ...
$ ...

rpm2deb

Open questions:

  • how to deal with dependencies specified within the RPM package?

The blog article got created 1st, but then the content got moved here: