How to Install apt or apt-get and Synaptic on RedHat Linux or Fedora


Quick and simple to do command line apt:

System-wide proxy set up:
If you have to use a proxy then you can set it up system-wide here:

Make some changes to /etc/profile just before the following line:

export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC

When you’re done it will look like this:

http_proxy=http://proxy.mydomain.com:8080
https_proxy=https://proxy.mydomain.com:8080

export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC http_proxy https_proxy

(I’ve bolded the changes so you’ll see which lines to add)

Download apt:

https://freshrpms.net/apt/

Install apt:
rpm -hUv apt-0.5.5cnc6-fr0.rh80.1.i386.rpm

Set up apt’s proxy:
vi /etc/apt/apt.conf
Make the following change:
Proxy “http://proxy.mydomain.com:8080/“; // http://user:pass@host:port/

Install synaptic:
apt-get update && apt-get install synaptic

Run synaptic:
synaptic

(Please don’t place synaptic in the background!)

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.