How to install HAProxy without apt-get command?

November 2, 2016 2.4k views
Arch Linux Clustering

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.


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.

Have another answer? Share your knowledge.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!