Pages

Monday, September 3, 2007

apt-get install for RHEL4

apt-get installation for rhel4 (Update 4)
----------------------------------------
apt-get - APT package handling utility.

apt-get, that I use a lot that made my life easy going on Debian.So now using same on RHEL.This is how one can use apt-get on RHEL.


#rpm -ivvh http://apt.sw.be/redhat/el4/en/x86_64/dag/RPMS/apt-0.5.15lorg3.2-1.el4.rf.x86_64.rpm

#vi /etc/apt/sorces.list.d/os.list (add following mirror )

repomd http://apt.sw.be redhat/el4/en/x86_64/dag/

#apt-get update
#apt-cache search pkg
#apt-get install pkg
#apt-get remove pkg

1 comment:

Josh Wisman said...

Very nice it works well.
I had two problems.

1. vi /etc/apt/sorces.list.d/os.list (add following mirror )
there was a typo it should be sources.list.d not "sorces.list.d"

2.
I could not do an apt-get update it would fail. I had to comment out the line you said to add in os.list, do apt-get update, then uncomment it, and run apt-get update, then it worked.