SPOJE.NET

Technická dokumentace

Uživatelské nástroje

Nástroje pro tento web


Postranní lišta


Provozují SPOJE.NET.
Nejlepší internet v Praze.

howto:linux:package_management

Package Management

Differences between package managers across various GNU/Linux distributions.

Desc. Debian/Ubuntu ArchLinux Gentoo RedHat Mandriva
manpages dpkg apt-get aptitude pacman emerge yum urpmi
update package database apt-get update pacman -Sy emerge sync urpmi.update -a
search in package database aptitude search keyword pacman -Ss keyword emerge -S keyword urpmq [package_name]
search in installed packages: aptitude search ~ikeyword pacman -Qs keyword yum list [keyword]
upgrade already installed packages apt-get upgrade pacman -Su emerge -uD world yum update urpmi --update --auto-select
hold/unhold package, show packages status echo "package hold" | dpkg --set-selections; echo "package install" | dpkg --set-selections; dpkg --get-selections | grep "package"
full update/upgrade combo apt-get update; apt-get dist-upgrade pacman -Syu urpmi --auto-select
install local package(s) dpkg -i package.deb pacman -U package.pkg.tar.gz
download and install package(s) apt-get install package1 [package2,…] pacman -S package1 [package2,…] emerge -u package yum install package urpmi package
remove package(s) apt-get remove package1 [package2,…] pacman -R package1 [package2,…] emerge -C package yum remove [package] urpme [package_name]
remove and purge package(s) apt-get purge package1 [package2,…] pacman -Rsn package1 [package2,…]
purge previously removed packages (delete user data, configuration, cache) aptitude purge ~c
remove orphan packages apt-get autoremove $(deborphan --guess-all) pacman -Rsn $(pacman -Qtdq) urpmi_rpm --find-leaves
list files in package dpkg --listfiles package
dpkg -L package
pacman -Ql package
list installed pakcages dpkg -l
apt list --installed
pacman -Qs
lookup file owner dpkg -S [file] pacman -Qo [file] yum whatprovides [file] urpmf [file]
get source package apt-get source package sudo abs; cp -r /var/abs/*/package .
build package from source package dpkg-buildpackage -rfakeroot -sa makepkg rpmbuild –rebuild balik.src.rpm
find and add a key to package manager gpg --keyserver subkeys.pgp.net --recv-keys 55BE302B && gpg -a --export 55BE302B | apt-key add -
remove i386 packages from x64 system apt-get purge `dpkg --get-selections | grep ":i386" | awk '{print $1}'` && dpkg --remove-architecture i386
Tuhle stránku prosím nepřekládat do češtiny!
howto/linux/package_management.txt · Poslední úprava: 2016/08/11 22:58 (upraveno mimo DokuWiki)