[Spacewalk-list] Delete deprecated OS, pkgs repo, etc from database

Waldirio Manhães Pinheiro waldirio at gmail.com
Tue Sep 30 02:33:09 UTC 2014


Friends

take a look in the command flags

###
[root at sw ~]# 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
  -F, --fix-file-path  Restores file paths, try this when you have NEVRAO
                       mismatches. Do not run this command with another
                       commands
  -h, --help           show this help message and exit
[root at sw ~]#
###

You can use -r to remove automatically, -f to force ..., so, enjoy! ;-)

B' Regards
Waldirio

______________
Atenciosamente
Waldirio
msn: waldirio at gmail.com
Skype: waldirio
Site: www.waldirio.com.br
Blog: blog.waldirio.com.br
LinkedIn: http://br.linkedin.com/pub/waldirio-pinheiro/22/b21/646
PGP: www.waldirio.com.br/public.html

On Fri, Sep 26, 2014 at 10:01 PM, Dewangga <dewanggaba at xtremenitro.org>
wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> Then, just remove them by rm -f <file.rpm>? Or how?
>
> On 9/26/2014 19:24, Michael Mraka wrote:
> > Dewangga wrote: % Hi Michael, % % Thanks for your answer, I've
> > tried to run spacewalk-data-fsck, and I % got something like this
> > : % % File checksum mismatch: %
> >
> /var/satellite/redhat/1/bd6/libspiro/20071029-10.fc19/i686/bd6de2afbca5d4dd3197a2183c2edb46b9bb263cae920615c33e03f02b9e15f0/libspiro-20071029-10.fc19.i686.rpm
> >
> >
> % (sha256:
> > % bd6de2afbca5d4dd3197a2183c2edb46b9bb263cae920615c33e03f02b9e15f0
> > vs. None)
> >
> > It means this file is not referenced from database and can be
> > removed.
> >
> > % Is it normal while FC19 channel still exists and not yet removed
> > from % spacewalk channel % % On 9/26/2014 17:12, Michael Mraka
> > wrote: % > Dewangga Bachrul Alam wrote: % Hi, % % Is there any best
> > practice % > to delete and maintain deprecated operating % system
> > include pkgs % > repositories, iso etc from disk and database? (eg,
> > % currently I % > have FC19 repository) how to safe delete them
> > from disk and % % > databases? % > % > Unused channels including
> > packages and files can be removed with % >
> > spacewalk-remove-channel. You can also run spacewalk-data-fsck to %
> > > check / remove files not referenced from database.
> >
> >
> > Regards,
> >
> > -- Michael Mráka Satellite Engineering, Red Hat
> >
> > _______________________________________________ Spacewalk-list
> > mailing list Spacewalk-list at redhat.com
> > https://www.redhat.com/mailman/listinfo/spacewalk-list
> >
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.17 (MingW32)
>
> iQEcBAEBAgAGBQJUJgxtAAoJEF1+odKB6YIxAN8H/Aj6A+NPBmG3ZDcY6P+lTeim
> +1H4/BJIxWXHvSqvrmz6avCqPpx4ubvgiDKJblX7lJXisAwmMiv/NQtlRZV39ejQ
> 3kNhWvKtocT4imxkvUhpip4QIycfMUvYDg/Vlcu8vVYtrIdYEdTDrUEAqe4V9Kr3
> /vp43h+lRaaEn+Mww7cV4xxAUexasp9MciAfr9NkdmXdwkrCzjx69Nv2Dd4dN2F9
> 5rp1CHZ1avpMxiDGGSJ4chCLJwHghptCYkuWjdRgnTUE6y2BEzx3ZrakGtjgTOdN
> 3Y9k6IIBbAuNF9fk2gfJF7nnnHdxAzN5iOgQfRulEZK9B1IUtOHRl1l3WxXPwes=
> =Zw+S
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20140929/1a3cc74a/attachment.htm>


More information about the Spacewalk-list mailing list