* [gentoo-user] How to comletely remove some package?
@ 2005-08-05 9:11 cadaver
2005-08-05 17:07 ` Mark Knecht
2005-08-05 17:55 ` Zac Medico
0 siblings, 2 replies; 6+ messages in thread
From: cadaver @ 2005-08-05 9:11 UTC (permalink / raw
To: gentoo-user
How to comletely remove some package(i.e. no cfgpro, no !mtime)?
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] How to comletely remove some package?
2005-08-05 9:11 [gentoo-user] How to comletely remove some package? cadaver
@ 2005-08-05 17:07 ` Mark Knecht
2005-08-05 18:25 ` Zac Medico
2005-08-05 17:55 ` Zac Medico
1 sibling, 1 reply; 6+ messages in thread
From: Mark Knecht @ 2005-08-05 17:07 UTC (permalink / raw
To: gentoo-user
Generally speaking, something like:
1) emerge -Cp package
2) emerge -pv --deep --update --newuse world
3) emerge -pv --depclean
4) revdep-rebuild -p
This should get rid of a package and any dependencies that are no longer needed.
NOTE: There have been some discussions about needing to do one or more
of these steps multiple times. Hopefully my answer will spur someone
with knowledge of that to point out if and when that is required.
Cheers,
Mark
On 8/5/05, cadaver@nerdshack.com <cadaver@nerdshack.com> wrote:
> How to comletely remove some package(i.e. no cfgpro, no !mtime)?
>
> --
> gentoo-user@gentoo.org mailing list
>
>
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] How to comletely remove some package?
2005-08-05 17:07 ` Mark Knecht
@ 2005-08-05 18:25 ` Zac Medico
2005-08-05 19:06 ` Mark Knecht
0 siblings, 1 reply; 6+ messages in thread
From: Zac Medico @ 2005-08-05 18:25 UTC (permalink / raw
To: gentoo-user
Mark Knecht wrote:
> Generally speaking, something like:
>
> 1) emerge -Cp package
> 2) emerge -pv --deep --update --newuse world
> 3) emerge -pv --depclean
> 4) revdep-rebuild -p
>
> This should get rid of a package and any dependencies that are no longer needed.
>
> NOTE: There have been some discussions about needing to do one or more
> of these steps multiple times. Hopefully my answer will spur someone
> with knowledge of that to point out if and when that is required.
>
> Cheers,
> Mark
>
At build time, some packages will link against unwanted libraries. Even though the unwanted library may not be strictly required, the ebuild may not support a way to disable it with use flags. For this reason, it's a good idea to add another step to your sequence:
1.5) emerge -av depclean
Some libraries that seem to actually link against the installed version at build time. This results in broken dynamic links when the installed version is replaced with the freshly built one. In these situations, a simple workaround is to unmerge the installed version before rebuilding it.
Zac
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] How to comletely remove some package?
2005-08-05 18:25 ` Zac Medico
@ 2005-08-05 19:06 ` Mark Knecht
2005-08-05 19:16 ` Zac Medico
0 siblings, 1 reply; 6+ messages in thread
From: Mark Knecht @ 2005-08-05 19:06 UTC (permalink / raw
To: gentoo-user
On 8/5/05, Zac Medico <zmedico@gmail.com> wrote:
> Mark Knecht wrote:
> > Generally speaking, something like:
> >
> > 1) emerge -Cp package
> > 2) emerge -pv --deep --update --newuse world
> > 3) emerge -pv --depclean
> > 4) revdep-rebuild -p
> >
> > This should get rid of a package and any dependencies that are no longer needed.
> >
> > NOTE: There have been some discussions about needing to do one or more
> > of these steps multiple times. Hopefully my answer will spur someone
> > with knowledge of that to point out if and when that is required.
> >
> > Cheers,
> > Mark
> >
>
> At build time, some packages will link against unwanted libraries. Even though the unwanted library may not be strictly required, the ebuild may not support a way to disable it with use flags. For this reason, it's a good idea to add another step to your sequence:
>
> 1.5) emerge -av depclean
>
> Some libraries that seem to actually link against the installed version at build time. This results in broken dynamic links when the installed version is replaced with the freshly built one. In these situations, a simple workaround is to unmerge the installed version before rebuilding it.
>
> Zac
Ah, thanks. so the idea is:
1) emerge -Cp package
1.5) emerge -av depclean
2) emerge -av --deep --update --newuse world
3) emerge -pv --depclean
4) revdep-rebuild -p
With step 1.5 to remove these old libraries? Seems to me that doing
this sort of depends on having done the whole process sometime before
cleanly through step 4. Fine with me though. Thanks for the
explanation.
Cheers,
Mark
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] How to comletely remove some package?
2005-08-05 19:06 ` Mark Knecht
@ 2005-08-05 19:16 ` Zac Medico
0 siblings, 0 replies; 6+ messages in thread
From: Zac Medico @ 2005-08-05 19:16 UTC (permalink / raw
To: gentoo-user
Mark Knecht wrote:
>
> Ah, thanks. so the idea is:
>
> 1) emerge -Cp package
> 1.5) emerge -av depclean
> 2) emerge -av --deep --update --newuse world
> 3) emerge -pv --depclean
> 4) revdep-rebuild -p
>
> With step 1.5 to remove these old libraries? Seems to me that doing
> this sort of depends on having done the whole process sometime before
> cleanly through step 4. Fine with me though. Thanks for the
> explanation.
>
> Cheers,
> Mark
>
Well, after you do step 1) it's best to purge any unneeded dependancies before proceding any further. Extra libraries pollute the build environment.
Zac
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] How to comletely remove some package?
2005-08-05 9:11 [gentoo-user] How to comletely remove some package? cadaver
2005-08-05 17:07 ` Mark Knecht
@ 2005-08-05 17:55 ` Zac Medico
1 sibling, 0 replies; 6+ messages in thread
From: Zac Medico @ 2005-08-05 17:55 UTC (permalink / raw
To: gentoo-user
cadaver@nerdshack.com wrote:
> How to comletely remove some package(i.e. no cfgpro, no !mtime)?
>
I believe that you can specify an empty CONFIG_PROTECT on the command line in order to disable it:
CONFIG_PROTECT="" emerge --unmerge foo
The mtime check currently cannot be overrided without hacking portage.py.
if (pkgfiles[obj][0] not in ("dir","fif","dev","sym")) and (lmtime != pkgfiles[obj][1]):
print "--- !mtime", pkgfiles[obj][0], obj
continue
Zac
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2005-08-05 19:21 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-05 9:11 [gentoo-user] How to comletely remove some package? cadaver
2005-08-05 17:07 ` Mark Knecht
2005-08-05 18:25 ` Zac Medico
2005-08-05 19:06 ` Mark Knecht
2005-08-05 19:16 ` Zac Medico
2005-08-05 17:55 ` Zac Medico
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox