I used the -r option before but it only seems to remove packages on the file 
system and not entries in the database.  I gave it a try with -d and -r but it 
doesn't remove entries in the database.


-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Miroslav Suchý
Sent: Tuesday, September 27, 2011 9:52 AM
To: [email protected]
Subject: Re: [Spacewalk-list] Unable to Download Packages from Spacewalk Server

On 09/27/2011 03:24 PM, Glennie, Jonathan - 0443 - MITLL wrote:
> Is there a way to run the spacewalk-data-fsck command or something similar 
> and tell it to remove packages listed in the DB that aren't in the file 
> system?

# spacewalk-data-fsck --help
usage: spacewalk-data-fsck [options]

options:
  -v, --verbose      Increase verbosity
  -S, --no-size      Don't check package size
  -C, --no-checksum  Don't check package checksum
  -O, --no-nevrao    Don't check package name, epoch, version, release,
arch,
                     org
  -d, --db-only      Check only if packages from database are present on
                     filesystem
  -f, --fs-only      Check only if packages from filesystem are in the
                     database
  -r, --remove       Automaticaly remove packages from filesystem not
present
                     in database
  -h, --help         show this help message and exit

So it would be:

 spacewalk-data-fsck -d -r

-- 
Miroslav Suchy
Red Hat Satellite Engineering

_______________________________________________
Spacewalk-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-list

_______________________________________________
Spacewalk-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-list

Reply via email to