public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Cleaning /var/lib/portage/packages -- a big mistake?
@ 2007-05-27 19:25 Kevin O'Gorman
  2007-05-27 19:27 ` [gentoo-user] " Kevin O'Gorman
  2007-05-27 19:46 ` [gentoo-user] " Neil Bothwick
  0 siblings, 2 replies; 4+ messages in thread
From: Kevin O'Gorman @ 2007-05-27 19:25 UTC (permalink / raw
  To: gentoo-user

I'm trying to clean up my hard drive to make it feasible to back up
the root partition. I cleaned out /usr/portage/disfiles (10 GB) with
no problem.  But...

I also cleaned out /usr/portage/packages (10 GB) but now emerge --sync
is complaining about a large number of them, and apparently cannot
update its cache.  I just moved them to another partition, they're not
really gone, but I'd like to not be carrying around so many of them.

I've been running with FEATURES="buildpkg" on in /etc/make.conf, so
I've accumulated a lot of
these things.  How do I now clean up my act?  If there's a way, I'd
like to keep building them, but be able to manage them without ruining
portage.

Most of the messages said the package "should be deleted".  This
mystifies my as in effect
that's what I already did.  What does it want me to do?

The emerge --sync died eventually.  Maybe one or more of the packages
is more vital than most.  So there may be packages I should not
manage.  Here's the tail end of the output:


!!! Invalid binary package: '/usr/portage/packages/All/less-394.tbz2'
!!! This binary package is not recoverable and should be deleted.
!!! Invalid binary package: '/usr/portage/packages/All/pycrypto-2.0.1-r5.tbz2'
!!! This binary package is not recoverable and should be deleted.
!!! Invalid binary package: '/usr/portage/packages/All/lsof-4.76.tbz2'
!!! This binary package is not recoverable and should be deleted.
!!! Invalid binary package: '/usr/portage/packages/All/rsync-2.6.8-r2.tbz2'
!!! This binary package is not recoverable and should be deleted.
!!! Invalid binary package: '/usr/portage/packages/All/man-pages-2.31.tbz2'
!!! This binary package is not recoverable and should be deleted.
Traceback (most recent call last):
  File "/usr/bin/emerge", line 5530, in ?
    retval = emerge_main()
  File "/usr/bin/emerge", line 5487, in emerge_main
    action_sync(settings, trees, mtimedb, myopts, myaction)
  File "/usr/bin/emerge", line 4207, in action_sync
    if portage.global_updates(settings, trees, mtimedb["updates"]):
  File "/usr/lib/portage/pym/portage.py", line 8163, in global_updates
    trees["/"]["bintree"].move_slot_ent(update_cmd)
  File "/usr/lib/portage/pym/portage.py", line 6413, in move_slot_ent
    self.populate()
  File "/usr/lib/portage/pym/portage.py", line 6570, in populate
    mycat = mytbz2.getfile("CATEGORY")
  File "/usr/lib/portage/pym/xpak.py", line 345, in getfile
    a=open(self.file,"r")
IOError: [Errno 2] No such file or directory:
'/usr/portage/packages/All/perl-cleaner-1.03.tbz2'

 portage #

Pointers, please...

++ kevin

-- 
Kevin O'Gorman, PhD
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [gentoo-user] Re: Cleaning /var/lib/portage/packages -- a big mistake?
  2007-05-27 19:25 [gentoo-user] Cleaning /var/lib/portage/packages -- a big mistake? Kevin O'Gorman
@ 2007-05-27 19:27 ` Kevin O'Gorman
  2007-05-27 19:46 ` [gentoo-user] " Neil Bothwick
  1 sibling, 0 replies; 4+ messages in thread
From: Kevin O'Gorman @ 2007-05-27 19:27 UTC (permalink / raw
  To: gentoo-user

Another oops: make that directory /usr/portage/packages.

++ kevin

On 5/27/07, I wrote:
> I'm trying to clean up my hard drive to make it feasible to back up
> the root partition. I cleaned out /usr/portage/disfiles (10 GB) with
> no problem.  But...
>
> I also cleaned out /usr/portage/packages (10 GB) but now emerge --sync
> is complaining about a large number of them, and apparently cannot
> update its cache.  I just moved them to another partition, they're not
> really gone, but I'd like to not be carrying around so many of them.
>
> I've been running with FEATURES="buildpkg" on in /etc/make.conf, so
> I've accumulated a lot of
> these things.  How do I now clean up my act?  If there's a way, I'd
> like to keep building them, but be able to manage them without ruining
> portage.
>
> Most of the messages said the package "should be deleted".  This
> mystifies my as in effect
> that's what I already did.  What does it want me to do?
>
> The emerge --sync died eventually.  Maybe one or more of the packages
> is more vital than most.  So there may be packages I should not
> manage.  Here's the tail end of the output:
>
>
> !!! Invalid binary package: '/usr/portage/packages/All/less-394.tbz2'
> !!! This binary package is not recoverable and should be deleted.
> !!! Invalid binary package: '/usr/portage/packages/All/pycrypto-2.0.1-r5.tbz2'
> !!! This binary package is not recoverable and should be deleted.
> !!! Invalid binary package: '/usr/portage/packages/All/lsof-4.76.tbz2'
> !!! This binary package is not recoverable and should be deleted.
> !!! Invalid binary package: '/usr/portage/packages/All/rsync-2.6.8-r2.tbz2'
> !!! This binary package is not recoverable and should be deleted.
> !!! Invalid binary package: '/usr/portage/packages/All/man-pages-2.31.tbz2'
> !!! This binary package is not recoverable and should be deleted.
> Traceback (most recent call last):
>   File "/usr/bin/emerge", line 5530, in ?
>     retval = emerge_main()
>   File "/usr/bin/emerge", line 5487, in emerge_main
>     action_sync(settings, trees, mtimedb, myopts, myaction)
>   File "/usr/bin/emerge", line 4207, in action_sync
>     if portage.global_updates(settings, trees, mtimedb["updates"]):
>   File "/usr/lib/portage/pym/portage.py", line 8163, in global_updates
>     trees["/"]["bintree"].move_slot_ent(update_cmd)
>   File "/usr/lib/portage/pym/portage.py", line 6413, in move_slot_ent
>     self.populate()
>   File "/usr/lib/portage/pym/portage.py", line 6570, in populate
>     mycat = mytbz2.getfile("CATEGORY")
>   File "/usr/lib/portage/pym/xpak.py", line 345, in getfile
>     a=open(self.file,"r")
> IOError: [Errno 2] No such file or directory:
> '/usr/portage/packages/All/perl-cleaner-1.03.tbz2'
>
>  portage #
>
> Pointers, please...
>
> ++ kevin

-- 
Kevin O'Gorman, PhD
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] Cleaning /var/lib/portage/packages -- a big mistake?
  2007-05-27 19:25 [gentoo-user] Cleaning /var/lib/portage/packages -- a big mistake? Kevin O'Gorman
  2007-05-27 19:27 ` [gentoo-user] " Kevin O'Gorman
@ 2007-05-27 19:46 ` Neil Bothwick
  2007-05-27 21:42   ` Kevin O'Gorman
  1 sibling, 1 reply; 4+ messages in thread
From: Neil Bothwick @ 2007-05-27 19:46 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1733 bytes --]

Hello Kevin O'Gorman,

> I also cleaned out /usr/portage/packages (10 GB) but now emerge --sync
> is complaining about a large number of them, and apparently cannot
> update its cache.  I just moved them to another partition, they're not
> really gone, but I'd like to not be carrying around so many of them.
> 
> I've been running with FEATURES="buildpkg" on in /etc/make.conf, so
> I've accumulated a lot of
> these things.  How do I now clean up my act?  If there's a way, I'd
> like to keep building them, but be able to manage them without ruining
> portage.

You shouldn't be able to damage portage with this, because it doesn't
need any binary packages, they are purely for your convenience.

> Most of the messages said the package "should be deleted".  This
> mystifies my as in effect
> that's what I already did.  What does it want me to do?
> 
> The emerge --sync died eventually.  Maybe one or more of the packages
> is more vital than most.  So there may be packages I should not
> manage.  Here's the tail end of the output:
> 
> 
> !!! Invalid binary package: '/usr/portage/packages/All/less-394.tbz2'
> !!! This binary package is not recoverable and should be deleted.
> !!! Invalid binary package:
> '/usr/portage/packages/All/pycrypto-2.0.1-r5.tbz2'
> !!! This binary package is not recoverable and should be deleted.

I suspect you deleted the packages in /usr/portage/packages/All/ but not
the symlinks in /usr/portage/packages/cate-gory. emerge symlinks and do
symlinks -r -d /usr/portage/packages to get rid of them.

In future, it may be safer to use eclean to remove your binary packages.


-- 
Neil Bothwick

If a book about failures doesn't sell, is it a success?

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] Cleaning /var/lib/portage/packages -- a big mistake?
  2007-05-27 19:46 ` [gentoo-user] " Neil Bothwick
@ 2007-05-27 21:42   ` Kevin O'Gorman
  0 siblings, 0 replies; 4+ messages in thread
From: Kevin O'Gorman @ 2007-05-27 21:42 UTC (permalink / raw
  To: gentoo-user

On 5/27/07, Neil Bothwick <neil@digimed.co.uk> wrote:
> Hello Kevin O'Gorman,
>
> > I also cleaned out /usr/portage/packages (10 GB) but now emerge --sync
> > is complaining about a large number of them, and apparently cannot
> > update its cache.  I just moved them to another partition, they're not
> > really gone, but I'd like to not be carrying around so many of them.
> >
> > I've been running with FEATURES="buildpkg" on in /etc/make.conf, so
> > I've accumulated a lot of
> > these things.  How do I now clean up my act?  If there's a way, I'd
> > like to keep building them, but be able to manage them without ruining
> > portage.
>
> You shouldn't be able to damage portage with this, because it doesn't
> need any binary packages, they are purely for your convenience.
>
> > Most of the messages said the package "should be deleted".  This
> > mystifies my as in effect
> > that's what I already did.  What does it want me to do?
> >
> > The emerge --sync died eventually.  Maybe one or more of the packages
> > is more vital than most.  So there may be packages I should not
> > manage.  Here's the tail end of the output:
> >
> >
> > !!! Invalid binary package: '/usr/portage/packages/All/less-394.tbz2'
> > !!! This binary package is not recoverable and should be deleted.
> > !!! Invalid binary package:
> > '/usr/portage/packages/All/pycrypto-2.0.1-r5.tbz2'
> > !!! This binary package is not recoverable and should be deleted.
>
> I suspect you deleted the packages in /usr/portage/packages/All/ but not
> the symlinks in /usr/portage/packages/cate-gory. emerge symlinks and do
> symlinks -r -d /usr/portage/packages to get rid of them.
>
> In future, it may be safer to use eclean to remove your binary packages.

Thanks.  I wasn't aware of 'eclean'.  I'll be sure to use it next time.

++ kevin

-- 
Kevin O'Gorman, PhD
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-05-27 21:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-27 19:25 [gentoo-user] Cleaning /var/lib/portage/packages -- a big mistake? Kevin O'Gorman
2007-05-27 19:27 ` [gentoo-user] " Kevin O'Gorman
2007-05-27 19:46 ` [gentoo-user] " Neil Bothwick
2007-05-27 21:42   ` Kevin O'Gorman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox