I use pacman in Arch Linux for installing packages.

  • The command for installing is pacman -S,

  • The command for a full system upgrade is pacman -Syu and

  • The command for repository update is pacman -Syy.

I want to know what is the equivalent for pacman in Ubuntu and its corresponding command.

marked as duplicate by karel, muru, Pilot6, Arronical, Eric Carvalho Sep 13 '17 at 14:05

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


I have to refer you to this link from Arch Wiki which compares pacman commands with other package managers:

Arch            Debian/Ubuntu
pacman -[S|Q]i  apt show / apt-cache policy
pacman -Qi      dpkg -s / aptitude show
pacman -Si      apt-cache show / aptitude show
pacman -Ql      dpkg -L
pacman -Fl      apt-file list $pattern
pacman -Qo      dpkg -S / dlocate
pacman -Ql      dpkg-query -L
pacman -Fo      apt-file search
pacman -Fs      apt-file search
pacman -Qc      apt-get changelog

pacman -Ss      apt search
pacman -Qu      apt-get upgrade -> n
pacman -Sl      apt-cache dumpavail

A shot from page:

enter image description here

  • 4
    You should really make a proper table of the commands, so people can copy paste the commands themselves – Ferrybig Sep 13 '17 at 7:59
  • 8
    That's right. Not everyone has time to type "apt search". – user12753 Sep 13 '17 at 9:23
  • 1
    More importantly, using images for text is just bad for accessibility of information. – CAD97 Sep 13 '17 at 13:03

Ubuntu is Debian based Linux distro. It uses the APT for package management.

Command for updating the repositories

sudo apt-get update

Command for updating the system packages

sudo apt-get upgrade

Command for installation of package

sudo apt-get install <package_name>
  • This Answer should probably be reordered a bit since apt-get update should always be the very first command to run. – derHugo Sep 13 '17 at 5:29
  • 1
    apt should be used instead of apt-get, the manpage says: It is intended as an end user interface and enables some options better suited for interactive usage by default compared to more specialized APT tools like apt-get(8) and apt-cache(8). – dessert Sep 13 '17 at 5:57
  • 1
    In the latest versions of Ubuntu, use apt instead of apt-get, e.g. sudo apt update. The newer command apt has been optimised in certain ways; see this answer. – Paddy Landau Sep 20 '17 at 10:54

Not the answer you're looking for? Browse other questions tagged or ask your own question.