How to install HAProxy without apt-get command?

Posted November 2, 2016 3.1k views
Arch LinuxClustering

In our company, apt-get command is not supported, getting below error.

$ apt-get install haproxy
-nologin: apt-get: not found [No such file or directory]

So please guide me how to install HAProxy in linux machine without apt-get cmd.
and also pls provide the link to get the HAProxy binaries.


These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

apt is the package manager used by Debian, Ubuntu and other Linux distributions based on them. If apt-get does not exist you are likely using a different Linux distribution.

You can usually find out what distribution you are running by checking the issue file, you can do this with the command:

cat /etc/issue

If this is CentOS, RedHat or Fedora then you will have to use the yum package manager instead.

Instead of the command you listed, you could possibly use

yum install haproxy

There are likely to be other differences so I would recommend finding a tutorial specifically for your distribution. This guide on HowtoForge covers installation in CentOS 7.