2

I'm trying to install rkhunter via yum on CentOS 4.8, but it's just not happening...

Loading "fastestmirror" plugin
Setting up Install Process
Setting up repositories
update                    100% |=========================|  951 B    00:00
rpmforge                  100% |=========================| 1.1 kB    00:00
base                      100% |=========================| 1.1 kB    00:00
addons                    100% |=========================|  951 B    00:00
extras                    100% |=========================| 1.1 kB    00:00
Loading mirror speeds from cached hostfile
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished
Parsing package install arguments
Error: Package tuple ('rkhunter', 'noarch', None, '1.2.9', '2.rh9.rf') could not be found in packagesack

I know some sysadmin basics, but not enough to problem solve when things don't go according to plan, and especially when Google doesn't want to give up the goods! Any help would be fantastic.

Mathew
  • 287
  • 1
  • 3
  • 9

3 Answers3

2

Does yum search rkhunter show anything? Is the yum repository cache up to date? Have you run yum update recently?

Also, Centos 4.8 is very old. I'm not even sure it's still supported.. I wouldn't be surprised if the remote repos for 4.8 had been removed.

Tom O'Connor
  • 27,440
  • 10
  • 72
  • 148
  • search returns; [line1] rkhunter.noarch None:1.2.9-2.rh9.rf rpmforge, [line2] rkhunter.noarch None:1.2.9-1.rh9.rf rpmforge. I have no idea what I'm doing when it comes to the cache or yum update (I thought that was a system wide update, not yum itself). Sadly I'm stuck with CentOS 4.8 for now. – Mathew Jan 19 '10 at 23:16
  • Try downloading http://rpm.pbone.net/index.php3/stat/4/idpl/11996614/com/rkhunter-1.3.2-1.el4.test.noarch.rpm.html and install with rpm. or yum localinstall – Tom O'Connor Jan 19 '10 at 23:19
  • Just run yum clean all, still no luck... – Mathew Jan 19 '10 at 23:31
  • Have you tried downloading the RPM and installing with localinstall instead? – Tom O'Connor Jan 20 '10 at 10:12
1

Sometimes the cached data on disk becomes unusable, but yum (thinking it is up to date) does not totally refresh it from the server. My general rule of thumb when running into weird errors like those specified are to clean out the various metadata and caches involved before moving forward, and manually check for updates to yum itself. The second step may be unnecessary, but the first seems to fix most odd repo related errors.

yum clean all
yum update yum

EDIT

Failing that, your repository definition could be malformed or otherwise damaged. Try disabling the rpmforge repository, and reinstalling it using their instructions.

Scott Pack
  • 14,717
  • 10
  • 51
  • 83
  • Interesting... "yum update yum" doesn't do anything either: "No Packages marked for Update / Obsoletion". – Mathew Jan 20 '10 at 03:17
0

Excluding Packages in global exclude list

Do you exclude this package ?

You maybe exclude a required package to install rkhunter

Luc M
  • 2,890
  • 4
  • 25
  • 27