Difference between revisions of "Package Manager Options"

From Rosalab Wiki
Jump to: navigation, search
m (1 revision)
(translated to English)
Line 1: Line 1:
 
[[Category:Package Management]]
 
[[Category:Package Management]]
  
Сопоставление опций различных средств управления пакетами.
+
Mapping of options of various package management tools.
  
 
{| class='wikitable'
 
{| class='wikitable'
! Действие !! rpm4/yum !! deb/apt !! rpm5/urpmi
+
! Action !! rpm4/yum !! deb/apt !! rpm5/urpmi
 
|-
 
|-
| Проверка наличия пакета в системе
+
| Check if package is installed
| rpm -qa <nowiki>|</nowiki> grep ''имя_пакета''
+
| rpm -qa <nowiki>|</nowiki> grep ''package_name''
rpm -qi ''имя_пакета''
+
rpm -qi ''package_name''
| dpkg-query -s ''имя_пакета''
+
| dpkg-query -s ''package_name''
dpkg-query -l ''образец_имени_пакета''
+
dpkg-query -l ''package_name_pattern''
  
dpkg-query -l ''имя_пакета''
+
dpkg-query -l ''package_name''
| rpm -qa <nowiki>|</nowiki> grep ''имя_пакета''
+
| rpm -qa <nowiki>|</nowiki> grep ''package_name''
rpm -qi ''имя_пакета''
+
rpm -qi ''package_name''
 
|-
 
|-
| Поиск пакета по имени файла, <br>который он предоставляет
+
| Check which package <br>provides the file
| rpm -qf ''имя файла''
+
| rpm -qf ''file_name''
(только для установленных пакетов)
+
(for installed packages only)
  
yum whatprovides ''имя файла''
+
yum whatprovides ''file_name''
| dpkg-query -S ''имя файла''
+
| dpkg-query -S ''file_name''
dpkg -S ''имя файла''
+
dpkg -S ''file_name''
| rpm -qf ''имя файла''
+
| rpm -qf ''file_name''
(только для установленных пакетов)
+
(for installed packages only)
  
urpmf ''имя файла''
+
urpmf ''file_name''
 
|-
 
|-
| Просмотр содержимого пакета
+
| List package content
| rpm -ql ''имя пакета''
+
| rpm -ql ''package_name''
 
| dpkg -с  
 
| dpkg -с  
 
dpkg --contents
 
dpkg --contents
| rpm -ql ''имя пакета''
+
| rpm -ql ''package_name''
urpmq -l ''имя пакета''
+
urpmq -l ''package_name''
 
|-
 
|-
| Просмотр информации <br>об установленном пакете
+
| Display information <br>about installed package
| rpm -qi ''имя пакета''
+
| rpm -qi ''package_name''
| dpkg-query -s ''имя_пакета''
+
| dpkg-query -s ''package_name''
dpkg-query -l ''имя_пакета''
+
dpkg-query -l ''package_name''
  
dpkg -s ''имя_пакета''
+
dpkg -s ''package_name''
  
dpkg -l ''имя_пакета''
+
dpkg -l ''package_name''
| rpm -qi ''имя пакета''
+
| rpm -qi ''package_name''
urpmq -i ''имя пакета''
+
urpmq -i ''package_name''
 
|-
 
|-
| Просмотр информации <br>о неустановленном пакете
+
| Display information about a package <br>not installed in the system
| yum info ''имя пакета''
+
| yum info ''package_name''
| apt-cache showpkg ''имя пакета''
+
| apt-cache showpkg ''package_name''
| urpmq -i ''имя пакета''
+
| urpmq -i ''package_name''
 
|-
 
|-
| Просмотр информации о скачанном пакете
+
| Display information about <br/downloaded package
 
| rpm -qip
 
| rpm -qip
 
| dpkg -I
 
| dpkg -I
 
| rpm -qip
 
| rpm -qip
 
|-
 
|-
| Проверка целостности пакетов <br>системы/конкретного пакета
+
| Verify package consistency
 
|rpm -Va
 
|rpm -Va
rpm -V ''имя пакета''
+
rpm -V ''package_name''
 
| debsums -as
 
| debsums -as
debsums ''имя пакета''
+
debsums ''package_name''
 
|rpm -Va
 
|rpm -Va
rpm -V ''имя пакета''
+
rpm -V ''package_name''
 
|-
 
|-
| Распаковка пакета
+
| Unpack package content
| rpm2cpio ''имя пакета'' <nowiki>|</nowiki> cpio -id
+
| rpm2cpio ''package_name'' <nowiki>|</nowiki> cpio -id
| dpkg --extract ''имя пакета''
+
| dpkg --extract ''package_name''
| rpm2cpio ''имя пакета'' <nowiki>|</nowiki> cpio -id
+
| rpm2cpio ''package_name'' <nowiki>|</nowiki> cpio -id
 
|-
 
|-
| Установка пакета <br>(без разрешения зависимостей)
+
| Install a package <br>(without installing dependencies)
| rpm -ivh ''имя пакета''
+
| rpm -ivh ''package_name''
| dpkg -i ./''имя пакета''
+
| dpkg -i ./''package_name''
| rpm -ivh ''имя пакета''
+
| rpm -ivh ''package_name''
 
|-
 
|-
| Удаление пакета («низкий уровень»)
+
| Uninstall package («low-level»)
| rpm -e ''имя пакета''
+
| rpm -e ''package_name''
| dpkg -r ''имя пакета''
+
| dpkg -r ''package_name''
dpkg -P ''имя пакета'' (со всеми конфигами)
+
dpkg -P ''package_name'' (with all config files)
| rpm -e ''имя пакета''
+
| rpm -e ''package_name''
 
|-
 
|-
| Установка пакета из сети <br>(с разрешением зависимостей)
+
| Install package from network <br>(with all dependencies)
| yum install ''пакет''
+
| yum install ''package''
| apt-get install ''пакет''
+
| apt-get install ''package''
aptitude install ''пакет''
+
aptitude install ''package''
| urpmi ''пакет''
+
| urpmi ''package''
 
|-
 
|-
| Удаление пакетов
+
| Uninstall package
| yum remove ''пакет''
+
| yum remove ''package''
| apt-get remove ''пакет''
+
| apt-get remove ''package''
aptitude remove ''пакет''
+
aptitude remove ''package''
| urpme ''пакет''
+
| urpme ''package''
 
|-
 
|-
| Обновление системы (мягкий вариант)
+
| "Soft" system update
 
| yum update
 
| yum update
 
| apt-get upgrade
 
| apt-get upgrade
Line 98: Line 98:
 
| urpmi --auto-update
 
| urpmi --auto-update
 
|-
 
|-
| Обновление системы (жесткий вариант<br> — переход между релизами)
+
| Upgrade system to a newer release
 
| yum upgrade
 
| yum upgrade
 
| apt-get dist-upgrade
 
| apt-get dist-upgrade
 
aptitude full-upgrade
 
aptitude full-upgrade
 
| urpmi --auto-update
 
| urpmi --auto-update
(с [http://wiki.mandriva.com/en/Tools/urpmi/Upgrade новыми репозиториями])
+
(with [http://wiki.mandriva.com/en/Tools/urpmi/Upgrade new repositories])
 
|-
 
|-
| Синхронизация базы данных <br>с репозиторием
+
| Sync db with repository
| Автоматически
+
| Automatically
 
| apt-get update
 
| apt-get update
 
aptitude update
 
aptitude update
 
| urpmi.update -a
 
| urpmi.update -a
 
|-
 
|-
| Поиск нужного пакета по его имени <br>и/или входящим в него файлам
+
| Look for a package by its name or file
| yum whatprovides ''запрос''
+
| yum whatprovides ''query''
 
| 'apt-cache search' + 'apt-file search'
 
| 'apt-cache search' + 'apt-file search'
 
| 'urpmq -y' + 'urpmf'
 
| 'urpmq -y' + 'urpmf'
 
|-
 
|-
| Поиск нужного пакета по регулярному <br>выражению/части имени
+
| Look for a package using regex or partial name
| yum search ''запрос''
+
| yum search ''query''
| apt-cache search ''запрос''
+
| apt-cache search ''query''
aptitude search ''запрос''
+
aptitude search ''query''
| urpmq --list <nowiki>|</nowiki> grep ''запрос''
+
| urpmq --list <nowiki>|</nowiki> grep ''query''
urpmq -y ''часть имени''
+
urpmq -y ''partial_name''
 
|-
 
|-
| Очистка системы <br>от ненужных зависимостей
+
| Delete unecessary dependencies <br>from the system
| Отсутствует
+
| ''not supported''
 
| apt-get autoremove
 
| apt-get autoremove
 
| urpme --auto-orphans
 
| urpme --auto-orphans
 
|-
 
|-
| Очистка кэша (полностью)
+
| Complete cache cleanup
 
| yum clean all
 
| yum clean all
 
| apt-get clean
 
| apt-get clean
Line 134: Line 134:
 
| urpmi --clean
 
| urpmi --clean
 
|-
 
|-
| "Умная" очистка кэша (от неустановленных/<br>удаленных пакетов)
+
| "Clever" cache cleanup (drop not installed packages)
 
|  
 
|  
 
| apt-get autoclean
 
| apt-get autoclean
 
aptitude autoclean
 
aptitude autoclean
 
|}
 
|}
 +
 +
[[ru:Package_Manager_Options]]
 +
[[en:Package_Manager_Options]]

Revision as of 11:45, 1 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