0% found this document useful (0 votes)
670 views

Package Management Cheatsheet

This document provides a cheat sheet comparing different package management systems used across various Linux distributions, including apt, yum, zypp, urpmi, slapt-get, and pacman. It lists common package management tasks such as installing, updating, and removing packages, and searching for packages. It also covers tasks for configuring software repositories and listing available repositories.

Uploaded by

legendario-br
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
670 views

Package Management Cheatsheet

This document provides a cheat sheet comparing different package management systems used across various Linux distributions, including apt, yum, zypp, urpmi, slapt-get, and pacman. It lists common package management tasks such as installing, updating, and removing packages, and searching for packages. It also covers tasks for configuring software repositories and listing available repositories.

Uploaded by

legendario-br
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Package Management Cheat Sheet

apt (deb) yum (rpm) zypp (rpm) urpmi (rpm) slapt-get (tgz,tbz,tlz) pacman (pkg.tar.gz) smart
Task Ubuntu, Debian Fedora, CentOS openSUSE Mandriva Vector Arch http://smartpm.org
Managing software
Install new software apt-get install pkg yum install pkg zypper install pkg urpmi pkg slapt-get --install pkg pacman -S pkg smart install pkg
from package repository
Install new software dpkg -i pkg yum localinstall pkg zypper install pkg urpmi pkg slapt-get --install pkg pacman -U pkg smart install pkg
from package file
Update existing software apt-get install pkg yum update pkg zypper update urpmi pkg slapt-get --install pkg pacman -S pkg smart upgrade pkg
-t package pkg
Remove unwanted software apt-get remove pkg yum erase pkg zypper remove pkg urpme pkg slapt-get --remove pkg pacman -R pkg smart remove pkg

Updating the system


Update package list apt-get update yum check-update zypper refresh urpmi.update -a slapt-get --update pacman -Sy smart update

Update system apt-get upgrade yum update zypper update urpmi --auto-select slapt-get --upgrade pacman -Su smart upgrade

Check all dependencies apt-get check smart check

Fix dependency problems apt-get –f install smart fix

Searching for packages


Search by package name apt-cache search pkg yum list pkg zypper search pkg urpmq pkg slapt-get --search pkg pacman -Ss pkg smart query pkg

Search by pattern apt-cache search pat yum search pat zypper search urpmq --fuzzy pat slapt-get --search pat pacman -Ss pat smart search pat
-t pattern pat
Search by file name apt-file search file yum provides file zypper wp file urpmf file -- pacman -Qo file smart query --path=file

List installed packages dpkg -l yum list installed zypper search -is rpm -qa slapt-get --installed pacman -Q smart query --installed

Configuring access to software repositories


List repositories cat /etc/apt/sources.list yum repolist zypper repos urpmq --list-media cat /etc/slapt-get/slapt-getrc cat /etc/pacman.conf smart channel --show

Add repository (edit (add repo to zypper addrepo urpmi.addmedia (edit (edit smart channel –add
/etc/apt/sources.list) /etc/yum.repos.d/) path name name path /etc/slapt-get/slapt-getrc) /etc/pacman.conf) name path
Remove repository (edit (remove repo from zypper removerepo urpmi.removemedia (edit (edit smart channel –remove
/etc/apt/sources.list) /etc/yum.repos.d/) name name /etc/slapt-get/slapt-getrc) /etc/pacman.conf) name
Based on earlier work by distrowatch.com

You might also like