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

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

repomd 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"

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.