Linux Administration/Installation/Debian Packages
Jump to navigation Jump to search
This lesson covers Debian package manager software.
Objectives and Skills[edit | edit source]
Objectives and skills for the Debian packages portion of Linux+ certification include:
- Use Debian package management
- Install, upgrade and uninstall Debian binary packages
- Find packages containing specific files or libraries that may or may not be installed
- Obtain package information such as version, content, dependencies, package integrity and installation status (whether or not the package is installed)
- The following is a partial list of the used files, terms and utilities:
Readings[edit | edit source]
Multimedia[edit | edit source]
Activities[edit | edit source]
- Complete the tutorial IBM: Learn Linux, 101: Debian package management
Lesson Summary[edit | edit source]
- Advanced Package Tool, or APT, is a free-software user interface that works with core libraries to handle the installation and removal of software on Debian, Ubuntu, and related Linux distributions.
apt-get updateis used to re-synchronize the package index files from their sources.
apt-get upgradeis used to install the newest versions of all packages currently installed on the system from the sources enumerated in /etc/apt/sources.list.
apt-get dist-upgradePerforms smart upgrade with dependency conflict resolution.
apt-get install packagelistinstalls listed packages.
apt-get remove packagelistremoves listed packages.
apt-cachesearches and generates package metadata.
apt-cache showpkg packagelistdisplays package information and reverse dependencies.
dpkg -llists all packages installed on a system.
dpkg -L packagelists the files installed by a given package.
dpkg -S filenamelists the package that installed a given file.
sudo dpkg -i filename.debinstalls a local .deb file.
dpkg-debpacks, unpacks and provides information about Debian archives.
dselectwas the primary user interface for installing, removing and managing Debian packages. It is the traditional front-end to dpkg.