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:[email protected]:port/

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

Run synaptic:
synaptic

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

By shibaa987

Linux kernel developer and a firmware developer with an experience of 10+ years.

Leave a comment

Your email address will not be published. Required fields are marked *