Linux distributions are using package managers in order to install, update and remove applications. In the old days there are very less package managers those are not so good. In to day they are very talented.
apt-get command not found is command error type which is shown while installing, updating and removing applications. In this tutorial we will look some error cases and solutions.
As an example when try to run
apt-get install tmux command we get following error.
$ apt-get install tmux
Distributions Using Apt-Get
In order under stand error and get solution we need to know distributions using
apt-get as default package manager. Following distributions can work with
apt-get without problem.
Distributions Not Using Apt-Get
The error is caused by distributions not using
apt-get as default package manager. So the command will not found. Following distributions do not use
apt-get as default package manager.
- MacOS X
The solution is using given distribution package manager here is a list of them.
Fedora, CentOS, RHEL
These distributions use
yum as default package manager. So we can use
yum like below.
$ sudo yum install tmux
For Arch Linux we can use following command.
$ packman -S tmux
Mac OS X
MacOS X uses
brew as package manager. We can use it like below.
$ brew install tmux