Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How do I remove a package + all the dependencies + all files
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
LegionOfHell
Apprentice
Apprentice


Joined: 16 Mar 2019
Posts: 234
Location: Toronto, Canada

PostPosted: Fri Jun 19, 2020 4:07 am    Post subject: How do I remove a package + all the dependencies + all files Reply with quote

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
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 24525
Location: here

PostPosted: Fri Jun 19, 2020 6:01 am    Post subject: Reply with quote

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
View user's profile Send private message
LegionOfHell
Apprentice
Apprentice


Joined: 16 Mar 2019
Posts: 234
Location: Toronto, Canada

PostPosted: Fri Jun 19, 2020 3:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 24525
Location: here

PostPosted: Fri Jun 19, 2020 4:40 pm    Post subject: Reply with quote

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
View user's profile Send private message
LegionOfHell
Apprentice
Apprentice


Joined: 16 Mar 2019
Posts: 234
Location: Toronto, Canada

PostPosted: Fri Jun 19, 2020 5:02 pm    Post subject: Reply with quote

so all i have to do is add : CONFIG_PROTECT="-*" to /etc/portage/make.conf ?
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 24525
Location: here

PostPosted: Fri Jun 19, 2020 6:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum