* [gentoo-user] Portage wants to re-emerge old kernel sources @ 2007-02-22 14:16 Grant 2007-02-22 15:59 ` Bo Ørsted Andresen 0 siblings, 1 reply; 13+ messages in thread From: Grant @ 2007-02-22 14:16 UTC (permalink / raw To: Gentoo mailing list On one of my Gentoo systems, portage wants to re-emerge hardened-sources-2.6.16-r10 and hardened-sources-2.6.14-r7 because of (-doc%). I'm currently using hardened-sources-2.6.18-hardened, but whenever new kernel sources are emerged, I just manually rm -rf the old sources in /usr/src. I guess portage wants to re-emerge the old sources because it thinks they are still installed. How can I let portage know that those old sources aren't installed anymore? - Grant -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] Portage wants to re-emerge old kernel sources 2007-02-22 14:16 [gentoo-user] Portage wants to re-emerge old kernel sources Grant @ 2007-02-22 15:59 ` Bo Ørsted Andresen [not found] ` <49bf44f10702221530r4439bcbbq8a51865f60a86906@mail.gmail.com> 0 siblings, 1 reply; 13+ messages in thread From: Bo Ørsted Andresen @ 2007-02-22 15:59 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 652 bytes --] On Thursday 22 February 2007 15:16:20 Grant wrote: > On one of my Gentoo systems, portage wants to re-emerge > hardened-sources-2.6.16-r10 and hardened-sources-2.6.14-r7 because of > (-doc%). I'm currently using hardened-sources-2.6.18-hardened, but > whenever new kernel sources are emerged, I just manually rm -rf the > old sources in /usr/src. I guess portage wants to re-emerge the old > sources because it thinks they are still installed. > > How can I let portage know that those old sources aren't installed anymore? By unmerging them ? # emerge -Cva =hardened-sources-2.6.16-r10 =hardened-sources-2.6.14-r7 -- Bo Andresen [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 13+ messages in thread
[parent not found: <49bf44f10702221530r4439bcbbq8a51865f60a86906@mail.gmail.com>]
* Re: [gentoo-user] Portage wants to re-emerge old kernel sources [not found] ` <49bf44f10702221530r4439bcbbq8a51865f60a86906@mail.gmail.com> @ 2007-02-22 23:51 ` Marc Joliet 2007-02-23 0:54 ` Neil Bothwick 2007-02-23 17:49 ` Grant 2007-02-22 23:54 ` Harm Geerts 1 sibling, 2 replies; 13+ messages in thread From: Marc Joliet @ 2007-02-22 23:51 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 1227 bytes --] Am Donnerstag, den 22.02.2007, 15:30 -0800 schrieb Grant: > > > On one of my Gentoo systems, portage wants to re-emerge > > > hardened-sources-2.6.16-r10 and hardened-sources-2.6.14-r7 because of > > > (-doc%). I'm currently using hardened-sources-2.6.18-hardened, but > > > whenever new kernel sources are emerged, I just manually rm -rf the > > > old sources in /usr/src. I guess portage wants to re-emerge the old > > > sources because it thinks they are still installed. > > > > > > How can I let portage know that those old sources aren't installed anymore? > > > > By unmerging them ? > > > > # emerge -Cva =hardened-sources-2.6.16-r10 =hardened-sources-2.6.14-r7 > > How can I see which versions of hardened-sources portage thinks are > currently installed? I guess I should manually unmerge old sources as > above instead of using rm -rf. > > - Grant Yes, you can: $ equery list --duplicates [<searchstring>] In your case <searchstring> should be 'sources'. Without <searchstring> it looks for all duplicates, installed in so-called slots. 'man equery' for more info. The tool is in the gentoolkit package. P.S.: Hi gentoo-user! YAN - Yet Another Newbie! -- HTH, Marc Joliet [-- Attachment #2: Dies ist ein digital signierter Nachrichtenteil --] [-- Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] Portage wants to re-emerge old kernel sources 2007-02-22 23:51 ` Marc Joliet @ 2007-02-23 0:54 ` Neil Bothwick 2007-02-23 7:20 ` Alan McKinnon 2007-02-23 17:49 ` Grant 1 sibling, 1 reply; 13+ messages in thread From: Neil Bothwick @ 2007-02-23 0:54 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 680 bytes --] On Fri, 23 Feb 2007 00:51:20 +0100, Marc Joliet wrote: > > How can I see which versions of hardened-sources portage thinks are > > currently installed? I guess I should manually unmerge old sources as > > above instead of using rm -rf. > > > > - Grant > > Yes, you can: > > $ equery list --duplicates [<searchstring>] It's also faster to rm -fr the directories before unmerging. You'd have to do it afterwards anyway, to remove the files that portage did not install (unless you run make mrproper) but doing it first speeds things up a lot as it avoids portage deleting each file individually. -- Neil Bothwick No maintenance: Impossible to fix. [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] Portage wants to re-emerge old kernel sources 2007-02-23 0:54 ` Neil Bothwick @ 2007-02-23 7:20 ` Alan McKinnon 0 siblings, 0 replies; 13+ messages in thread From: Alan McKinnon @ 2007-02-23 7:20 UTC (permalink / raw To: gentoo-user On Friday 23 February 2007, Neil Bothwick wrote: > It's also faster to rm -fr the directories before unmerging. You'd > have to do it afterwards anyway, to remove the files that portage did > not install (unless you run make mrproper) but doing it first speeds > things up a lot as it avoids portage deleting each file individually. Heh. I unmerged 4 old kernels packages a few days ago. The deleting took 20 minutes (!) Not surprising when you consider there were >30,000 files in each tree, and each one installed by portage has it's md5 sum checked, then deleted. rm -rf would've taken 20 seconds... alan -- Optimists say the glass is half full, Pessimists say the glass is half empty, Developers say wtf is the glass twice as big as it needs to be? Alan McKinnon alan at linuxholdings dot co dot za +27 82, double three seven, one nine three five -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] Portage wants to re-emerge old kernel sources 2007-02-22 23:51 ` Marc Joliet 2007-02-23 0:54 ` Neil Bothwick @ 2007-02-23 17:49 ` Grant 2007-02-23 18:48 ` Neil Bothwick 2007-02-23 19:55 ` Bo Ørsted Andresen 1 sibling, 2 replies; 13+ messages in thread From: Grant @ 2007-02-23 17:49 UTC (permalink / raw To: gentoo-user > > > > On one of my Gentoo systems, portage wants to re-emerge > > > > hardened-sources-2.6.16-r10 and hardened-sources-2.6.14-r7 because of > > > > (-doc%). I'm currently using hardened-sources-2.6.18-hardened, but > > > > whenever new kernel sources are emerged, I just manually rm -rf the > > > > old sources in /usr/src. I guess portage wants to re-emerge the old > > > > sources because it thinks they are still installed. > > > > > > > > How can I let portage know that those old sources aren't installed anymore? > > > > > > By unmerging them ? > > > > > > # emerge -Cva =hardened-sources-2.6.16-r10 =hardened-sources-2.6.14-r7 > > > > How can I see which versions of hardened-sources portage thinks are > > currently installed? I guess I should manually unmerge old sources as > > above instead of using rm -rf. > > > > - Grant > > Yes, you can: > > $ equery list --duplicates [<searchstring>] > > In your case <searchstring> should be 'sources'. Without <searchstring> > it looks for all duplicates, installed in so-called slots. It is true then that emerge --depclean never unmerges slotted packages? - Grant -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] Portage wants to re-emerge old kernel sources 2007-02-23 17:49 ` Grant @ 2007-02-23 18:48 ` Neil Bothwick 2007-02-23 19:55 ` Bo Ørsted Andresen 1 sibling, 0 replies; 13+ messages in thread From: Neil Bothwick @ 2007-02-23 18:48 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 335 bytes --] On Fri, 23 Feb 2007 09:49:18 -0800, Grant wrote: > It is true then that emerge --depclean never unmerges slotted packages? That's correct, but that's not what --depclean is for. emerge --prune will remove all but thew highest slot - use with great care! -- Neil Bothwick - We are but packets in the internet of Life- [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] Portage wants to re-emerge old kernel sources 2007-02-23 17:49 ` Grant 2007-02-23 18:48 ` Neil Bothwick @ 2007-02-23 19:55 ` Bo Ørsted Andresen 2007-02-23 22:46 ` Grant 1 sibling, 1 reply; 13+ messages in thread From: Bo Ørsted Andresen @ 2007-02-23 19:55 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 1186 bytes --] On Friday 23 February 2007 18:49:18 Grant wrote: > > > How can I see which versions of hardened-sources portage thinks are > > > currently installed? I guess I should manually unmerge old sources as > > > above instead of using rm -rf. > > > > Yes, you can: > > > > $ equery list --duplicates [<searchstring>] > > > > In your case <searchstring> should be 'sources'. Without <searchstring> > > it looks for all duplicates, installed in so-called slots. > > It is true then that emerge --depclean never unmerges slotted packages? Just how would portage know that an old slot is no longer needed? Just because a newer version is installed doesn't mean it's been compiled or that the old is no longer needed (you might need to compile some package against the old that fails to compile against the new)... For the more general case slot deps aren't allowed in the tree yet so it's not all that easy to figure out which slots are in use. You do risk breaking your system by pruning the wrong package.. Regardless, I do think app-portage/udept at least attempts to do this. I haven't tried it so I can't say how reliable it is, though. -- Bo Andresen [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] Portage wants to re-emerge old kernel sources 2007-02-23 19:55 ` Bo Ørsted Andresen @ 2007-02-23 22:46 ` Grant 2007-02-23 22:58 ` [gentoo-user] " Harm Geerts 0 siblings, 1 reply; 13+ messages in thread From: Grant @ 2007-02-23 22:46 UTC (permalink / raw To: gentoo-user > > It is true then that emerge --depclean never unmerges slotted packages? > > Just how would portage know that an old slot is no longer needed? Just because > a newer version is installed doesn't mean it's been compiled or that the old > is no longer needed (you might need to compile some package against the old > that fails to compile against the new)... > > For the more general case slot deps aren't allowed in the tree yet so it's not > all that easy to figure out which slots are in use. You do risk breaking your > system by pruning the wrong package.. Ok, yes, slot deps sounds like what I'm after here. Is there a portage command I can run to see which packages are installed in more than one slot? I'm having disk space problems on my laptop. - Grant -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 13+ messages in thread
* [gentoo-user] Re: Portage wants to re-emerge old kernel sources 2007-02-23 22:46 ` Grant @ 2007-02-23 22:58 ` Harm Geerts 2007-02-23 23:28 ` Marc Joliet 2007-02-25 2:27 ` Grant 0 siblings, 2 replies; 13+ messages in thread From: Harm Geerts @ 2007-02-23 22:58 UTC (permalink / raw To: gentoo-user On Friday 23 February 2007, Grant wrote: > > > It is true then that emerge --depclean never unmerges slotted packages? > > > > Just how would portage know that an old slot is no longer needed? Just > > because a newer version is installed doesn't mean it's been compiled or > > that the old is no longer needed (you might need to compile some package > > against the old that fails to compile against the new)... > > > > For the more general case slot deps aren't allowed in the tree yet so > > it's not all that easy to figure out which slots are in use. You do risk > > breaking your system by pruning the wrong package.. > > Ok, yes, slot deps sounds like what I'm after here. Is there a > portage command I can run to see which packages are installed in more > than one slot? I'm having disk space problems on my laptop. emerge -Pp Though you should never run that without --pretend cause that will destroy your system. -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] Re: Portage wants to re-emerge old kernel sources 2007-02-23 22:58 ` [gentoo-user] " Harm Geerts @ 2007-02-23 23:28 ` Marc Joliet 2007-02-25 2:27 ` Grant 1 sibling, 0 replies; 13+ messages in thread From: Marc Joliet @ 2007-02-23 23:28 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 1290 bytes --] Am Freitag, den 23.02.2007, 23:58 +0100 schrieb Harm Geerts: > On Friday 23 February 2007, Grant wrote: > > > > It is true then that emerge --depclean never unmerges slotted packages? > > > > > > Just how would portage know that an old slot is no longer needed? Just > > > because a newer version is installed doesn't mean it's been compiled or > > > that the old is no longer needed (you might need to compile some package > > > against the old that fails to compile against the new)... > > > > > > For the more general case slot deps aren't allowed in the tree yet so > > > it's not all that easy to figure out which slots are in use. You do risk > > > breaking your system by pruning the wrong package.. > > > > Ok, yes, slot deps sounds like what I'm after here. Is there a > > portage command I can run to see which packages are installed in more > > than one slot? I'm having disk space problems on my laptop. > > emerge -Pp > > Though you should never run that without --pretend cause that will destroy > your system. I personally prefer 'equery list --duplicates' from my previous post. It takes up little space. But I guess it's a taste thing, and you need the gentoolkit package. Just wanted to state an alternative :). -- HTH, Marc Joliet [-- Attachment #2: Dies ist ein digital signierter Nachrichtenteil --] [-- Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] Re: Portage wants to re-emerge old kernel sources 2007-02-23 22:58 ` [gentoo-user] " Harm Geerts 2007-02-23 23:28 ` Marc Joliet @ 2007-02-25 2:27 ` Grant 1 sibling, 0 replies; 13+ messages in thread From: Grant @ 2007-02-25 2:27 UTC (permalink / raw To: gentoo-user > > > > It is true then that emerge --depclean never unmerges slotted packages? > > > > > > Just how would portage know that an old slot is no longer needed? Just > > > because a newer version is installed doesn't mean it's been compiled or > > > that the old is no longer needed (you might need to compile some package > > > against the old that fails to compile against the new)... > > > > > > For the more general case slot deps aren't allowed in the tree yet so > > > it's not all that easy to figure out which slots are in use. You do risk > > > breaking your system by pruning the wrong package.. > > > > Ok, yes, slot deps sounds like what I'm after here. Is there a > > portage command I can run to see which packages are installed in more > > than one slot? I'm having disk space problems on my laptop. > > emerge -Pp > > Though you should never run that without --pretend cause that will destroy > your system. Ok, I guess this is where I either stop or find out if udept works. - Grant -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 13+ messages in thread
* [gentoo-user] Re: Portage wants to re-emerge old kernel sources [not found] ` <49bf44f10702221530r4439bcbbq8a51865f60a86906@mail.gmail.com> 2007-02-22 23:51 ` Marc Joliet @ 2007-02-22 23:54 ` Harm Geerts 1 sibling, 0 replies; 13+ messages in thread From: Harm Geerts @ 2007-02-22 23:54 UTC (permalink / raw To: gentoo-user On Friday 23 February 2007, Grant wrote: > > > On one of my Gentoo systems, portage wants to re-emerge > > > hardened-sources-2.6.16-r10 and hardened-sources-2.6.14-r7 because of > > > (-doc%). I'm currently using hardened-sources-2.6.18-hardened, but > > > whenever new kernel sources are emerged, I just manually rm -rf the > > > old sources in /usr/src. I guess portage wants to re-emerge the old > > > sources because it thinks they are still installed. > > > > > > How can I let portage know that those old sources aren't installed > > > anymore? > > > > By unmerging them ? > > > > # emerge -Cva =hardened-sources-2.6.16-r10 =hardened-sources-2.6.14-r7 > > How can I see which versions of hardened-sources portage thinks are > currently installed? I guess I should manually unmerge old sources as > above instead of using rm -rf. # default emerge search emerge -s hardened-sources # this works great for cleaning out old versions like you want emerge -Pp hardened-sources # fast portage searchtool emerge eix && update-eix && eix hardened-sources -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2007-02-25 2:33 UTC | newest] Thread overview: 13+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2007-02-22 14:16 [gentoo-user] Portage wants to re-emerge old kernel sources Grant 2007-02-22 15:59 ` Bo Ørsted Andresen [not found] ` <49bf44f10702221530r4439bcbbq8a51865f60a86906@mail.gmail.com> 2007-02-22 23:51 ` Marc Joliet 2007-02-23 0:54 ` Neil Bothwick 2007-02-23 7:20 ` Alan McKinnon 2007-02-23 17:49 ` Grant 2007-02-23 18:48 ` Neil Bothwick 2007-02-23 19:55 ` Bo Ørsted Andresen 2007-02-23 22:46 ` Grant 2007-02-23 22:58 ` [gentoo-user] " Harm Geerts 2007-02-23 23:28 ` Marc Joliet 2007-02-25 2:27 ` Grant 2007-02-22 23:54 ` Harm Geerts
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox