I have one server with Red Hat Enterprise Linux AS release 4 (Nahant Update 3) installed. And I tried to add the online repo using this link:Centos Wiki: RPMForgeAnd everything goes smooth. But when I tried to install any package it replies:[root@Backup yum.repos.d]# yum -v install httpd-bash: yum: command not foundThere are some repos in /etc/yum.repo.d/:mirrors-rpmforge  mirrors-rpmforge-extras  mirrors-rpmforge-testing  rpmforge.repoThe content of rpmforge.repo is:[root@Backup yum.repos.d]# cat rpmforge.repo### Name: RPMforge RPM Repository for RHEL 4 - dag### URL: http://rpmforge.net/[rpmforge]name = RHEL $releasever - RPMforge.net - dagbaseurl = http://apt.sw.be/redhat/el4/en/$basearch/rpmforgemirrorlist = http://apt.sw.be/redhat/el4/en/mirrors-rpmforge#mirrorlist = file:///etc/yum.repos.d/mirrors-rpmforgeenabled = 1protect = 0gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-daggpgcheck = 1[rpmforge-extras]name = RHEL $releasever - RPMforge.net - extrasbaseurl = http://apt.sw.be/redhat/el4/en/$basearch/extrasmirrorlist = http://apt.sw.be/redhat/el4/en/mirrors-rpmforge-extras#mirrorlist = file:///etc/yum.repos.d/mirrors-rpmforge-extrasenabled = 0protect = 0gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-daggpgcheck = 1[rpmforge-testing]name = RHEL $releasever - RPMforge.net - testingbaseurl = http://apt.sw.be/redhat/el4/en/$basearch/testingmirrorlist = http://apt.sw.be/redhat/el4/en/mirrors-rpmforge-testing#mirrorlist = file:///etc/yum.repos.d/mirrors-rpmforge-testingenabled = 0protect = 0gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-daggpgcheck = 1Command Results[root@Backup yum.repos.d]# yum-bash: yum: command not found[root@Backup yum.repos.d]# which yum/usr/bin/which: no yum in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin)[root@Backup yum.repos.d]# echo $PATH/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin[root@Backup yum.repos.d]# rpm -q yumpackage yum is not installed[root@Backup yum.repos.d]# find /bin/ /usr/bin -name yum[root@Backup yum.repos.d]# find /bin/ /usr/bin -name yum*[root@Backup yum.repos.d]# ls -l /etc/yum.comfls: /etc/yum.comf: No such file or directory[root@Backup yum.repos.d]# ls -l /etc/yum.confls: /etc/yum.conf: No such file or directory
-bash: yum: command not found
rhel;yum;repository
After simple checks I've asked you in answer comment:[root@Backup yum.repos.d]# yum-bash: yum: command not found[root@Backup yum.repos.d]# which yum/usr/bin/which: no yum in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin)[root@Backup yum.repos.d]# echo $PATH/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin[root@Backup yum.repos.d]# rpm -q yumpackage yum is not installedwe can verify that you don't have yum installed in your system.Please install it via rpm and you'll be able to launch it.