View previous topic :: View next topic |
Author |
Message |
LegionOfHell Apprentice

Joined: 16 Mar 2019 Posts: 253 Location: Toronto, Canada
|
Posted: Fri Jun 19, 2020 4:07 am Post subject: How do I remove a package + all the dependencies + all files |
|
|
the following will remove the package and all of the dependencies:
Code: | emerge -av --depclean <pkg> |
How do I delete all of the files that came with the package as well ? like config files and etc ?
Also, I have run emerge -av --depclean on some packages without removing the files...what should I do about those ? |
|
Back to top |
|
 |
fedeliallalinea Administrator


Joined: 08 Mar 2003 Posts: 28224 Location: here
|
Posted: Fri Jun 19, 2020 6:01 am Post subject: |
|
|
With emerge -C you can add before CONFIG_PROTECT="-*".
I think this can work also with emerge --depclean _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
 |
LegionOfHell Apprentice

Joined: 16 Mar 2019 Posts: 253 Location: Toronto, Canada
|
Posted: Fri Jun 19, 2020 3:15 pm Post subject: |
|
|
fedeliallalinea wrote: | With emerge -C you can add before CONFIG_PROTECT="-*".
I think this can work also with emerge --depclean |
I think you mean -c and not -C ?
CONFIG_PROTECT="-*" removes config files that are in /home only ..right ? |
|
Back to top |
|
 |
fedeliallalinea Administrator


Joined: 08 Mar 2003 Posts: 28224 Location: here
|
Posted: Fri Jun 19, 2020 4:40 pm Post subject: |
|
|
LegionOfHell wrote: | CONFIG_PROTECT="-*" removes config files that are in /home only ..right ? |
No, CONFIG_PROTECT remove file primarily in /etc but not in /home, usually these are created by program at runtime. _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
 |
LegionOfHell Apprentice

Joined: 16 Mar 2019 Posts: 253 Location: Toronto, Canada
|
Posted: Fri Jun 19, 2020 5:02 pm Post subject: |
|
|
so all i have to do is add : CONFIG_PROTECT="-*" to /etc/portage/make.conf ? |
|
Back to top |
|
 |
fedeliallalinea Administrator


Joined: 08 Mar 2003 Posts: 28224 Location: here
|
Posted: Fri Jun 19, 2020 6:26 pm Post subject: |
|
|
LegionOfHell wrote: | so all i have to do is add : CONFIG_PROTECT="-*" to /etc/portage/make.conf ? |
If you want to remove always config file even at the risk of losing your modifications yes _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
 |
|