Report this

What is the reason for this report?

How to install HAProxy without apt-get command?

Posted on November 2, 2016

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,



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!

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.

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.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.