Gentoo Archives: gentoo-user

From: Kevin O'Gorman <kogorman@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Cleaning /var/lib/portage/packages -- a big mistake?
Date: Sun, 27 May 2007 19:34:31
Message-Id: 9acccfe50705271225g7875e993v4b7373ffdd5c4791@mail.gmail.com
1 I'm trying to clean up my hard drive to make it feasible to back up
2 the root partition. I cleaned out /usr/portage/disfiles (10 GB) with
3 no problem. But...
4
5 I also cleaned out /usr/portage/packages (10 GB) but now emerge --sync
6 is complaining about a large number of them, and apparently cannot
7 update its cache. I just moved them to another partition, they're not
8 really gone, but I'd like to not be carrying around so many of them.
9
10 I've been running with FEATURES="buildpkg" on in /etc/make.conf, so
11 I've accumulated a lot of
12 these things. How do I now clean up my act? If there's a way, I'd
13 like to keep building them, but be able to manage them without ruining
14 portage.
15
16 Most of the messages said the package "should be deleted". This
17 mystifies my as in effect
18 that's what I already did. What does it want me to do?
19
20 The emerge --sync died eventually. Maybe one or more of the packages
21 is more vital than most. So there may be packages I should not
22 manage. Here's the tail end of the output:
23
24
25 !!! Invalid binary package: '/usr/portage/packages/All/less-394.tbz2'
26 !!! This binary package is not recoverable and should be deleted.
27 !!! Invalid binary package: '/usr/portage/packages/All/pycrypto-2.0.1-r5.tbz2'
28 !!! This binary package is not recoverable and should be deleted.
29 !!! Invalid binary package: '/usr/portage/packages/All/lsof-4.76.tbz2'
30 !!! This binary package is not recoverable and should be deleted.
31 !!! Invalid binary package: '/usr/portage/packages/All/rsync-2.6.8-r2.tbz2'
32 !!! This binary package is not recoverable and should be deleted.
33 !!! Invalid binary package: '/usr/portage/packages/All/man-pages-2.31.tbz2'
34 !!! This binary package is not recoverable and should be deleted.
35 Traceback (most recent call last):
36 File "/usr/bin/emerge", line 5530, in ?
37 retval = emerge_main()
38 File "/usr/bin/emerge", line 5487, in emerge_main
39 action_sync(settings, trees, mtimedb, myopts, myaction)
40 File "/usr/bin/emerge", line 4207, in action_sync
41 if portage.global_updates(settings, trees, mtimedb["updates"]):
42 File "/usr/lib/portage/pym/portage.py", line 8163, in global_updates
43 trees["/"]["bintree"].move_slot_ent(update_cmd)
44 File "/usr/lib/portage/pym/portage.py", line 6413, in move_slot_ent
45 self.populate()
46 File "/usr/lib/portage/pym/portage.py", line 6570, in populate
47 mycat = mytbz2.getfile("CATEGORY")
48 File "/usr/lib/portage/pym/xpak.py", line 345, in getfile
49 a=open(self.file,"r")
50 IOError: [Errno 2] No such file or directory:
51 '/usr/portage/packages/All/perl-cleaner-1.03.tbz2'
52
53 portage #
54
55 Pointers, please...
56
57 ++ kevin
58
59 --
60 Kevin O'Gorman, PhD
61 --
62 gentoo-user@g.o mailing list

Replies

Subject Author
[gentoo-user] Re: Cleaning /var/lib/portage/packages -- a big mistake? Kevin O'Gorman <kogorman@×××××.com>
Re: [gentoo-user] Cleaning /var/lib/portage/packages -- a big mistake? Neil Bothwick <neil@××××××××××.uk>