1 |
On 5/25/06, Lord Sauron <lordsauronthegreat@×××××.com> wrote: |
2 |
> I think I may have made a break through here! |
3 |
> |
4 |
> I've always noticed that everything portage is very slow. It's like |
5 |
> it's having to un-tar and un-bzip everything all the time... lo and |
6 |
> behold, it is. |
7 |
|
8 |
No, it is not. |
9 |
|
10 |
> |
11 |
> I've found (after much exploration) that there is a archive: |
12 |
> /portage-20060123.tar.bz2 |
13 |
|
14 |
Simply a portage snapshot, maybe the one you used to install Gentoo in |
15 |
the first place? Take a look at the date and tell me I'm wrong. |
16 |
|
17 |
> |
18 |
> This has - to the best of my knowledge - all the ebuild headers or |
19 |
> whatever for everything. I know I can un-tar this and all, however, I |
20 |
> want portage to use it in its uncompressed state, just to speed things |
21 |
> up. I'm not burning for hard drive space, so a little more speed |
22 |
> would be great. |
23 |
|
24 |
Of course, it is a portage snapshot, it has a whole compressed portage |
25 |
tree, used to install, or update portage when using alternative |
26 |
methods for those (like me) that lack the capacity to use remote |
27 |
RSYNC. |
28 |
|
29 |
> |
30 |
> However, I have no idea where to start to try and configure portage to |
31 |
> reflect a change like this. I've read the man pages for ebuild and |
32 |
> emerge several times over without finding any hints, so I was thinking |
33 |
> someone on this list would know. |
34 |
|
35 |
There's no "change" and there's no such feature. If you take a look at |
36 |
/usr/portage, you'll notice that is has all "portage related" stuff |
37 |
there, a snapshot is decompressed there when you install (correct me |
38 |
if I'm wrong, but you installed using the Gentoo Installer, didn't |
39 |
you? if you had a complete experience of Gentoo install, you would |
40 |
know that by now, that's why I strongly advice new users to AVOID THE |
41 |
INSTALLER). If you sync once in a while, it is updated. Portage is not |
42 |
kept compressed. |
43 |
|
44 |
> |
45 |
> I also think that there's another file, /metadata.tar.bz2, which I |
46 |
> think is portage-related. If possible I'd like to uncompress that as |
47 |
> well. |
48 |
|
49 |
Oh, this one was a good choice, metadata is used by portage, but if |
50 |
you take a look at /usr/portage/metadata, it is uncompressed there |
51 |
too, and that is what portage uses. |
52 |
|
53 |
> |
54 |
> I think this is the cause of a slow portage because everything takes a |
55 |
> long time to start going, then it's just fine. It takes about as long |
56 |
> to start going as it does to open the archive |
57 |
> /portage-20060123.tar.bz2 - conincidence? I think not! |
58 |
|
59 |
But it is. That's because of caching, not because it uncompress |
60 |
everything every time and compress it again later, that would be |
61 |
stupid (forgive my language). |
62 |
|
63 |
> |
64 |
> I also get the bonehead award: there was a new kernel sitting on my |
65 |
> hard drive and just yesterday I found and installed it. It was |
66 |
> remarkably easy to install! I loaded the configuration file from my |
67 |
> old kernel and then just make && make install and it worked! I didn't |
68 |
> even have to edit /boot/grub/menu.lst! Dang... I got done and said |
69 |
> "that was easy." I think I'm really getting the hang of all this! |
70 |
|
71 |
You have run an "emerge -u world" and it got the kernel sources, you |
72 |
have no special needs and so the default configuration fit your need, |
73 |
compiling kernels is EASY, making them work, that's a hard one. |
74 |
|
75 |
You sincerely must be booting from your old kernel and your |
76 |
/usr/src/linux link must be pointing at your old sources, else you |
77 |
would have some problems and probably would have to recompile, |
78 |
reconfigure some stuff, because after make and all, you should copy |
79 |
the image to /boot and, if necessary, change the grub.conf (menu.lst) |
80 |
to point at the right file. |
81 |
|
82 |
See the Kernel upgrade guide at Gentoo.org for more info. |
83 |
|
84 |
-- |
85 |
Daniel da Veiga |
86 |
Computer Operator - RS - Brazil |
87 |
-----BEGIN GEEK CODE BLOCK----- |
88 |
Version: 3.1 |
89 |
GCM/IT/P/O d-? s:- a? C++$ UBLA++ P+ L++ E--- W+++$ N o+ K- w O M- V- |
90 |
PS PE Y PGP- t+ 5 X+++ R+* tv b+ DI+++ D+ G+ e h+ r+ y++ |
91 |
------END GEEK CODE BLOCK------ |
92 |
|
93 |
-- |
94 |
gentoo-user@g.o mailing list |