Linux apt-get command not found - How to install a package in Arch Linux?

laukok picture laukok · Feb 11, 2016 · Viewed 73k times · Source

I am trying to install a command:

$ sudo -s apt-get install net-tools
/bin/bash: apt-get: command not found

How can I install apt-get then?

I use command below to find Out My Linux Distribution Name and Version:

$ cat /etc/*-release

I get this below:

NAME="Arch Linux"
ID=arch
PRETTY_NAME="Arch Linux"
ANSI_COLOR="0;36"
HOME_URL="https://www.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://bugs.archlinux.org/"

Any ideas what should I do to install a command in Arch Linux?

Answer

Marcus picture Marcus · Feb 11, 2016

First of all, Arch provides a beautiful, well maintained wiki. You may want to read it first before working with Arch. The pre-installed package manager is "pacman".

To install a package from the official repositories, you will need to use it like this:

# pacman -S <package name>

There is also a community maintained version, the Arch User Repository, for packages not part of the official repository.