click below
click below
Normal Size Small Size show me how
LPI101 - 4.5
Use Debian Package Management
Question | Answer |
---|---|
dpkg -E | Do not overwrite a previously installed package of the same version. |
dpkg -G | Do not overwrite a previously installed package with an older version of that same package. |
dpkg -R | Recursively process package files in specified subdirectories. Works with -i,--install, --unpack, and so on. |
dpkg --configure package | Configure an unpacked package. This involves setup of configuration files. |
dpkg -i package | Install the package contained in package_file. This involves backing up old files, unpacking and installation of new files, and configuration. |
dpkg -l pattern | Display information for installed package names that match pattern. |
dpkg -L package | List files installed from package. |
dpkg --print-avail package | Display details found in /var/lib/dpkg/available about package. |
dpkg --purge package | Remove everything for package. |
dpkg -r package | Remove everything except configuration files for package. |
dpkg -s package | Report the status of package. |
dpkg -S search_pattern | Search for a filename matching search_pattern from installed packages. |
dpkg --unpack package_file | Unpack package_file, but don't install the package it contains. |
apt-get -d | Download files, but do not install. This is useful when you wish to get a large number of package files but delay their installation to prevent installation errors from stopping the download process. |
apt-get -s | Simulate the steps in a package change, but do not actually change the system. |
apt-get -y | Automatically respond "yes" to all prompts, instead of prompting you for a response during package installation/removal. |
apt-get dist-upgrade | Upgrade automatically to new versions of Debian Linux. |
apt-get install | Install or upgrade one or more packages by name. |
apt-get remove | Remove specified packages. |
apt-get update | Fetch a list of currently available packages. This is typically done before any changes are made to existing packages. |
apt-get upgrade | Upgrade a system's complete set of packages to current versions safely. This command is conservative and will not process upgrades that could cause a conflict or break an existing configuration; it also will not remove packages. |
alien -i | Automatically install the output package and remove the converted package file. |
alien -r | Convert package to RPM format. |
alien -t | Convert package to a gzip tar archive. |