public inbox for gentoo-amd64@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-amd64] Quick Portage How to
@ 2007-03-21 18:45 Mark Haney
  2007-03-21 18:50 ` Mark Knecht
                   ` (4 more replies)
  0 siblings, 5 replies; 14+ messages in thread
From: Mark Haney @ 2007-03-21 18:45 UTC (permalink / raw
  To: gentoo-amd64

Is there a way I can get portage to show me all the listed kernel 
sources I've installed?  When I've removed kernel sources I no longer 
need because of upgrades I've just rm -rf the kernel directory. Since 
I've done that, I've realized that portage is probably keeping that in 
in world as installed and I would like to keep the portage db as clean 
as possible.

Does that make sense?

-- 
Ita erat quando hic adveni.

Mark Haney
Sr. Systems Administrator
ERC Broadband
(828) 350-2415
-- 
gentoo-amd64@gentoo.org mailing list



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

* Re: [gentoo-amd64] Quick Portage How to
  2007-03-21 18:45 [gentoo-amd64] Quick Portage How to Mark Haney
@ 2007-03-21 18:50 ` Mark Knecht
  2007-03-21 19:02   ` Mark Haney
  2007-03-21 18:59 ` Bob Slawson
                   ` (3 subsequent siblings)
  4 siblings, 1 reply; 14+ messages in thread
From: Mark Knecht @ 2007-03-21 18:50 UTC (permalink / raw
  To: gentoo-amd64

??

eix -I gentoo-sources

??

On 3/21/07, Mark Haney <mhaney@ercbroadband.org> wrote:
> Is there a way I can get portage to show me all the listed kernel
> sources I've installed?  When I've removed kernel sources I no longer
> need because of upgrades I've just rm -rf the kernel directory. Since
> I've done that, I've realized that portage is probably keeping that in
> in world as installed and I would like to keep the portage db as clean
> as possible.
>
> Does that make sense?
>
> --
> Ita erat quando hic adveni.
>
> Mark Haney
> Sr. Systems Administrator
> ERC Broadband
> (828) 350-2415
> --
> gentoo-amd64@gentoo.org mailing list
>
>
-- 
gentoo-amd64@gentoo.org mailing list



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

* Re: [gentoo-amd64] Quick Portage How to
  2007-03-21 18:45 [gentoo-amd64] Quick Portage How to Mark Haney
  2007-03-21 18:50 ` Mark Knecht
@ 2007-03-21 18:59 ` Bob Slawson
  2007-03-21 20:55   ` Bernhard Auzinger
  2007-03-21 19:06 ` Christoph Mende
                   ` (2 subsequent siblings)
  4 siblings, 1 reply; 14+ messages in thread
From: Bob Slawson @ 2007-03-21 18:59 UTC (permalink / raw
  To: gentoo-amd64

Mark Haney wrote:
> Is there a way I can get portage to show me all the listed kernel 
> sources I've installed?  When I've removed kernel sources I no longer 
> need because of upgrades I've just rm -rf the kernel directory. Since 
> I've done that, I've realized that portage is probably keeping that in 
> in world as installed and I would like to keep the portage db as clean 
> as possible.
> 
> Does that make sense?
> 
Sure, I've worked that way as well.

A great addition is:

emerge eix and run 'update-eix'. This builds a database of installed 
packages. Then

% eix gentoo-sources            (or vanilla-sources or whatever)

will list all the available ebuilds for gentoo-sources and highlight 
those that portage thinks are installed.

'unmerge'ing those you don't want will clean up portage's database of 
installed packages.  Doesn't remove /lib/modules/<kernel-version>/ 
though or old kernels from /boot/.  Seems that manual deletion is 
required here.

HTH

BobS
-- 
gentoo-amd64@gentoo.org mailing list



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

* Re: [gentoo-amd64] Quick Portage How to
  2007-03-21 18:50 ` Mark Knecht
@ 2007-03-21 19:02   ` Mark Haney
  2007-03-22  8:45     ` Dizzy
  0 siblings, 1 reply; 14+ messages in thread
From: Mark Haney @ 2007-03-21 19:02 UTC (permalink / raw
  To: gentoo-amd64

Mark Knecht wrote:
> ??
> 
> eix -I gentoo-sources
> 
> ??
> 
> On 3/21/07, Mark Haney <mhaney@ercbroadband.org> wrote:
>> Is there a way I can get portage to show me all the listed kernel
>> sources I've installed?  When I've removed kernel sources I no longer
>> need because of upgrades I've just rm -rf the kernel directory. Since
>> I've done that, I've realized that portage is probably keeping that in
>> in world as installed and I would like to keep the portage db as clean
>> as possible.
>>
>> Does that make sense?
>>
>> -- 
>> Ita erat quando hic adveni.
>>
>> Mark Haney
>> Sr. Systems Administrator
>> ERC Broadband
>> (828) 350-2415
>> -- 
>> gentoo-amd64@gentoo.org mailing list
>>
>>

I have never heard of eix, but I"ll give it a shot and see.


-- 
Ita erat quando hic adveni.

Mark Haney
Sr. Systems Administrator
ERC Broadband
(828) 350-2415
-- 
gentoo-amd64@gentoo.org mailing list



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

* Re: [gentoo-amd64] Quick Portage How to
  2007-03-21 18:45 [gentoo-amd64] Quick Portage How to Mark Haney
  2007-03-21 18:50 ` Mark Knecht
  2007-03-21 18:59 ` Bob Slawson
@ 2007-03-21 19:06 ` Christoph Mende
  2007-03-21 19:16 ` Hemmann, Volker Armin
  2007-03-21 22:24 ` Peter Humphrey
  4 siblings, 0 replies; 14+ messages in thread
From: Christoph Mende @ 2007-03-21 19:06 UTC (permalink / raw
  To: gentoo-amd64

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

On Wed, 2007-03-21 at 14:45 -0400, Mark Haney wrote:
> Is there a way I can get portage to show me all the listed kernel 
> sources I've installed?
eix -cI "\-sources"
lists all kernel sources

emerge -P gentoo-sources
removes all gentoo-sources, except the one you installed at last

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 827 bytes --]

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

* Re: [gentoo-amd64] Quick Portage How to
  2007-03-21 18:45 [gentoo-amd64] Quick Portage How to Mark Haney
                   ` (2 preceding siblings ...)
  2007-03-21 19:06 ` Christoph Mende
@ 2007-03-21 19:16 ` Hemmann, Volker Armin
  2007-03-21 22:24 ` Peter Humphrey
  4 siblings, 0 replies; 14+ messages in thread
From: Hemmann, Volker Armin @ 2007-03-21 19:16 UTC (permalink / raw
  To: gentoo-amd64

On Mittwoch, 21. März 2007, Mark Haney wrote:
> Is there a way I can get portage to show me all the listed kernel
> sources I've installed?  When I've removed kernel sources I no longer
> need because of upgrades I've just rm -rf the kernel directory. Since
> I've done that, I've realized that portage is probably keeping that in
> in world as installed and I would like to keep the portage db as clean
> as possible.
>
> Does that make sense?
>

yes.

Removing the sources first and unmerging after that is a lot faster than 
unmerging first and removing the remains.

The easiest way to find out which sources are installed:

ls -l /var/db/pkg/sys-kernel

no fance tools are needed.
--
gentoo-amd64@gentoo.org mailing list



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

* Re: [gentoo-amd64] Quick Portage How to
  2007-03-21 18:59 ` Bob Slawson
@ 2007-03-21 20:55   ` Bernhard Auzinger
  2007-03-22 14:06     ` Daniel Gryniewicz
  0 siblings, 1 reply; 14+ messages in thread
From: Bernhard Auzinger @ 2007-03-21 20:55 UTC (permalink / raw
  To: gentoo-amd64

> 'unmerge'ing those you don't want will clean up portage's database of
> installed packages.  Doesn't remove /lib/modules/<kernel-version>/
> though or old kernels from /boot/.  Seems that manual deletion is
> required here.

That's because one may still want to use a compiled kernel after the removal 
of the kernel sources.

The second thing is that sys-kernel/gentoo-sources does only refer to the 
kernel sources and not to your self-made kernel. If the kernel were 
made/compiled by portage like any other program, portage would remove it. But 
unless this does not happen (and by the way is not possible yet), why should 
portage clean up the things it has not caused?

rgds
Bernhard


-- 
gentoo-amd64@gentoo.org mailing list



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

* Re: [gentoo-amd64] Quick Portage How to
  2007-03-21 18:45 [gentoo-amd64] Quick Portage How to Mark Haney
                   ` (3 preceding siblings ...)
  2007-03-21 19:16 ` Hemmann, Volker Armin
@ 2007-03-21 22:24 ` Peter Humphrey
  2007-03-22 12:42   ` Jack Lloyd
  4 siblings, 1 reply; 14+ messages in thread
From: Peter Humphrey @ 2007-03-21 22:24 UTC (permalink / raw
  To: gentoo-amd64

On Wednesday 21 March 2007 18:45:39 Mark Haney wrote:

> Is there a way I can get portage to show me all the listed kernel
> sources I've installed?

And one more they haven't mentioned:

equery l gentoo-sources

which I think gives a neater output.

(That's equery l, for list.)

-- 
Rgds
Peter Humphrey
Linux Counter 5290, Aug 93
-- 
gentoo-amd64@gentoo.org mailing list



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

* Re: [gentoo-amd64] Quick Portage How to
  2007-03-21 19:02   ` Mark Haney
@ 2007-03-22  8:45     ` Dizzy
  2007-03-22  8:59       ` יובל האגר
  0 siblings, 1 reply; 14+ messages in thread
From: Dizzy @ 2007-03-22  8:45 UTC (permalink / raw
  To: gentoo-amd64

On Wednesday 21 March 2007 21:02, Mark Haney wrote:
> Mark Knecht wrote:
> > ??
> >
> > eix -I gentoo-sources
> >
> > ??
> >
> > On 3/21/07, Mark Haney <mhaney@ercbroadband.org> wrote:
> >> Is there a way I can get portage to show me all the listed kernel
> >> sources I've installed?  When I've removed kernel sources I no longer
> >> need because of upgrades I've just rm -rf the kernel directory. Since
> >> I've done that, I've realized that portage is probably keeping that in
> >> in world as installed and I would like to keep the portage db as clean
> >> as possible.
> >>
> >> Does that make sense?
> >>
> >> --
> >> Ita erat quando hic adveni.
> >>
> >> Mark Haney
> >> Sr. Systems Administrator
> >> ERC Broadband
> >> (828) 350-2415
> >> --
> >> gentoo-amd64@gentoo.org mailing list
>
> I have never heard of eix, but I"ll give it a shot and see.

I also use "epm" (rpm-like interface) and something like epm -q gentoo-sources 
(or rpm -qa | grep sources if you want all things containing sources). Would 
someone tell me what's better with eix ? 

I would assume it's a faster search algorithm than epm but then again, do I 
have to rerun the update db of eix on each database update or it installs in 
the portage modules or something to do it automatically ?

-- 
Mihai RUSU					Email: dizzy@roedu.net
GPG : http://dizzy.roedu.net/dizzy-gpg.txt	WWW: http://dizzy.roedu.net
			"Linux is obsolete" -- AST
-- 
gentoo-amd64@gentoo.org mailing list



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

* Re: [gentoo-amd64] Quick Portage How to
  2007-03-22  8:45     ` Dizzy
@ 2007-03-22  8:59       ` יובל האגר
  0 siblings, 0 replies; 14+ messages in thread
From: יובל האגר @ 2007-03-22  8:59 UTC (permalink / raw
  To: gentoo-amd64

> I also use "epm" (rpm-like interface) and something like epm -q
> gentoo-sources (or rpm -qa | grep sources if you want all things containing
> sources). Would someone tell me what's better with eix ?
>
> I would assume it's a faster search algorithm than epm but then again, do I
> have to rerun the update db of eix on each database update or it installs
> in the portage modules or something to do it automatically ?
>

I don't know about epm, but it's much faster (and better IMHO) than equery et. 
al.

you can use 'eix-sync' which takes care of syncing your tree AND update the 
eix database.

--
Yuval Hager
-- 
gentoo-amd64@gentoo.org mailing list



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

* Re: [gentoo-amd64] Quick Portage How to
  2007-03-21 22:24 ` Peter Humphrey
@ 2007-03-22 12:42   ` Jack Lloyd
  2007-03-22 14:19     ` Drake Donahue
  0 siblings, 1 reply; 14+ messages in thread
From: Jack Lloyd @ 2007-03-22 12:42 UTC (permalink / raw
  To: gentoo-amd64

On Wed, Mar 21, 2007 at 10:24:37PM +0000, Peter Humphrey wrote:
> On Wednesday 21 March 2007 18:45:39 Mark Haney wrote:
> 
> > Is there a way I can get portage to show me all the listed kernel
> > sources I've installed?
> 
> And one more they haven't mentioned:
> 
> equery l gentoo-sources

Another, related one that I use a lot is

equery l sys-kernel/

(since I use a mix of gentoo-sources and vanilla-sources on my
machines, depending on which contains fixes for the bugs that happen
to be bothering me that day).

-J
-- 
gentoo-amd64@gentoo.org mailing list



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

* Re: [gentoo-amd64] Quick Portage How to
  2007-03-21 20:55   ` Bernhard Auzinger
@ 2007-03-22 14:06     ` Daniel Gryniewicz
  2007-03-22 19:26       ` Thomas Rösner
  0 siblings, 1 reply; 14+ messages in thread
From: Daniel Gryniewicz @ 2007-03-22 14:06 UTC (permalink / raw
  To: gentoo-amd64

On Wed, 2007-03-21 at 21:55 +0100, Bernhard Auzinger wrote:
> > 'unmerge'ing those you don't want will clean up portage's database of
> > installed packages.  Doesn't remove /lib/modules/<kernel-version>/
> > though or old kernels from /boot/.  Seems that manual deletion is
> > required here.
> 
> That's because one may still want to use a compiled kernel after the removal 
> of the kernel sources.
> 

Actually, it's because portage only removes what portage installed,
which is the source, in this case.  It didn't install the modules (you
did, by running make modules_install), so it won't remove them.

Daniel

-- 
gentoo-amd64@gentoo.org mailing list



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

* Re: [gentoo-amd64] Quick Portage How to
  2007-03-22 12:42   ` Jack Lloyd
@ 2007-03-22 14:19     ` Drake Donahue
  0 siblings, 0 replies; 14+ messages in thread
From: Drake Donahue @ 2007-03-22 14:19 UTC (permalink / raw
  To: gentoo-amd64


----- Original Message ----- 
From: "Jack Lloyd" <lloyd@randombit.net>
To: <gentoo-amd64@lists.gentoo.org>
Sent: Thursday, March 22, 2007 8:42 AM
Subject: Re: [gentoo-amd64] Quick Portage How to


> On Wed, Mar 21, 2007 at 10:24:37PM +0000, Peter Humphrey wrote:
>> On Wednesday 21 March 2007 18:45:39 Mark Haney wrote:
>> 
>> > Is there a way I can get portage to show me all the listed kernel
>> > sources I've installed?
>> 
>> And one more they haven't mentioned:
>> 
>> equery l gentoo-sources
> 
> Another, related one that I use a lot is
> 
> equery l sys-kernel/
> 
> (since I use a mix of gentoo-sources and vanilla-sources on my
> machines, depending on which contains fixes for the bugs that happen
> to be bothering me that day).

or 
as mentioned in "Gentoo Linux Kernel Upgrade Guide":
eselect kernel list

> 
> -J
> -- 
> gentoo-amd64@gentoo.org mailing list
>
-- 
gentoo-amd64@gentoo.org mailing list



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

* Re: [gentoo-amd64] Quick Portage How to
  2007-03-22 14:06     ` Daniel Gryniewicz
@ 2007-03-22 19:26       ` Thomas Rösner
  0 siblings, 0 replies; 14+ messages in thread
From: Thomas Rösner @ 2007-03-22 19:26 UTC (permalink / raw
  To: gentoo-amd64

Daniel Gryniewicz schrieb:
> On Wed, 2007-03-21 at 21:55 +0100, Bernhard Auzinger wrote:
>   
>>> 'unmerge'ing those you don't want will clean up portage's database of
>>> installed packages.  Doesn't remove /lib/modules/<kernel-version>/
>>> though or old kernels from /boot/.  Seems that manual deletion is
>>> required here.
>>>       
>> That's because one may still want to use a compiled kernel after the removal 
>> of the kernel sources.
>>
>>     
>
> Actually, it's because portage only removes what portage installed,
> which is the source, in this case.  It didn't install the modules (you
> did, by running make modules_install), so it won't remove them.
>   

Even if they were installed by portage, /lib/modules is in CONFIG_PROTECT.

Regards,
    Thomas
-- 
gentoo-amd64@gentoo.org mailing list



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

end of thread, other threads:[~2007-03-22 19:29 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-21 18:45 [gentoo-amd64] Quick Portage How to Mark Haney
2007-03-21 18:50 ` Mark Knecht
2007-03-21 19:02   ` Mark Haney
2007-03-22  8:45     ` Dizzy
2007-03-22  8:59       ` יובל האגר
2007-03-21 18:59 ` Bob Slawson
2007-03-21 20:55   ` Bernhard Auzinger
2007-03-22 14:06     ` Daniel Gryniewicz
2007-03-22 19:26       ` Thomas Rösner
2007-03-21 19:06 ` Christoph Mende
2007-03-21 19:16 ` Hemmann, Volker Armin
2007-03-21 22:24 ` Peter Humphrey
2007-03-22 12:42   ` Jack Lloyd
2007-03-22 14:19     ` Drake Donahue

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