Question

How to install HAProxy without apt-get command?

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.

Thanks,


Submit an answer

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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.