Difference between revisions of "Package Manager Options"

From Rosalab Wiki
Jump to: navigation, search
(translated to English)
m (Drop link to the English page (reference to itself))
 
Line 141: Line 141:
  
 
[[ru:Package_Manager_Options]]
 
[[ru:Package_Manager_Options]]
[[en:Package_Manager_Options]]
 

Latest revision as of 08:11, 12 March 2012


Mapping of options of various package management tools.

Action rpm4/yum deb/apt rpm5/urpmi
Check if package is installed rpm -qa | grep package_name

rpm -qi package_name

dpkg-query -s package_name

dpkg-query -l package_name_pattern

dpkg-query -l package_name

rpm -qa | grep package_name

rpm -qi package_name

Check which package
provides the file
rpm -qf file_name

(for installed packages only)

yum whatprovides file_name

dpkg-query -S file_name

dpkg -S file_name

rpm -qf file_name

(for installed packages only)

urpmf file_name

List package content rpm -ql package_name dpkg -с

dpkg --contents

rpm -ql package_name

urpmq -l package_name

Display information
about installed package
rpm -qi package_name dpkg-query -s package_name

dpkg-query -l package_name

dpkg -s package_name

dpkg -l package_name

rpm -qi package_name

urpmq -i package_name

Display information about a package
not installed in the system
yum info package_name apt-cache showpkg package_name urpmq -i package_name
Display information about <br/downloaded package rpm -qip dpkg -I rpm -qip
Verify package consistency rpm -Va

rpm -V package_name

debsums -as

debsums package_name

rpm -Va

rpm -V package_name

Unpack package content rpm2cpio package_name | cpio -id dpkg --extract package_name rpm2cpio package_name | cpio -id
Install a package
(without installing dependencies)
rpm -ivh package_name dpkg -i ./package_name rpm -ivh package_name
Uninstall package («low-level») rpm -e package_name dpkg -r package_name

dpkg -P package_name (with all config files)

rpm -e package_name
Install package from network
(with all dependencies)
yum install package apt-get install package

aptitude install package

urpmi package
Uninstall package yum remove package apt-get remove package

aptitude remove package

urpme package
"Soft" system update yum update apt-get upgrade

aptitude safe-upgrade

urpmi --auto-update
Upgrade system to a newer release yum upgrade apt-get dist-upgrade

aptitude full-upgrade

urpmi --auto-update

(with new repositories)

Sync db with repository Automatically apt-get update

aptitude update

urpmi.update -a
Look for a package by its name or file yum whatprovides query 'apt-cache search' + 'apt-file search' 'urpmq -y' + 'urpmf'
Look for a package using regex or partial name yum search query apt-cache search query

aptitude search query

urpmq --list | grep query

urpmq -y partial_name

Delete unecessary dependencies
from the system
not supported apt-get autoremove urpme --auto-orphans
Complete cache cleanup yum clean all apt-get clean

aptitude clean

urpmi --clean
"Clever" cache cleanup (drop not installed packages) apt-get autoclean

aptitude autoclean