[gentoo-user] How to comletely remove some package?

2005-08-05 Thread cadaver
How to comletely remove some package(i.e. no cfgpro, no !mtime)?

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] How to comletely remove some package?

2005-08-05 Thread Mark Knecht
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, [EMAIL PROTECTED] [EMAIL PROTECTED] 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



Re: [gentoo-user] How to comletely remove some package?

2005-08-05 Thread Zac Medico

[EMAIL PROTECTED] 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



Re: [gentoo-user] How to comletely remove some package?

2005-08-05 Thread Zac Medico

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



Re: [gentoo-user] How to comletely remove some package?

2005-08-05 Thread Mark Knecht
On 8/5/05, Zac Medico [EMAIL PROTECTED] 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