Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Portage Synaptic Yast Yum ..
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
GTrax
n00b
n00b


Joined: 02 Jan 2007
Posts: 40
Location: Hampshire UK

PostPosted: Fri Dec 07, 2007 7:30 pm    Post subject: Portage Synaptic Yast Yum .. Reply with quote

.. and maybe others.
Some are bits of others wrapped up with front-ends. We try them all. emerge is (rightly) famous as a defining characteristic of Gentoo, yet it has a foible I don't understand the need for.

In the grey past when "Windows 95" held sway here, un-installing software might bring the message that there were left over certain drivers no longer used by anything, and we had the choice to delete, or preserve them. Clearly it was possible that not only could a software package ensure its needs were present, the resources could be shared, but that also, at the back end, some sort of indexing could prevent its inappropriate removal.

I just don't know enough about a thing like a 'dependency database' to know if its easy to do - I suspect not, but an emerge command to remove software that was friendly enough not to come with a red warning, and only remove what was sensibly removable would score high with me.
_________________
Living with: Ubuntu, Sidux and Gentoo :)
Back to top
View user's profile Send private message
Theimon
Tux's lil' helper
Tux's lil' helper


Joined: 16 Mar 2007
Posts: 99
Location: Netherlands

PostPosted: Fri Dec 07, 2007 9:01 pm    Post subject: Reply with quote

Code:
emerge --depclean -p
for starters?
Maybe a
Code:
revdep-rebuild
to go along with that?
_________________
It doesn't matter what's right, it's only wrong if you get caught.
Back to top
View user's profile Send private message
GTrax
n00b
n00b


Joined: 02 Jan 2007
Posts: 40
Location: Hampshire UK

PostPosted: Fri Dec 07, 2007 11:10 pm    Post subject: Reply with quote

Yes - I figured that out. I am sure we all have to. I am even sure some folks put that stanza into a script to make it into a personalised command.

What I am expressing is surprise at the method. It looks like ..

1. Simply throw out what is on the dependency list of the application being dumped.
2. Invoke a new system-wide re-count of the dependency requirements of what is left.
3. Put the missing bits back according to the new information.

Now simply because I don't actually know, I cannot get overly critical. For all I know, the net effect of the emerge commands we issue to do this is not to dump and put back. Maybe it only appears so.
That is why this thread is in 'chat'.
_________________
Living with: Ubuntu, Sidux and Gentoo :)
Back to top
View user's profile Send private message
Carlo
Developer
Developer


Joined: 12 Aug 2002
Posts: 3356

PostPosted: Sat Dec 08, 2007 9:08 pm    Post subject: Reply with quote

Portage doesn't care about the dependencies when unmerging. There is no counter how many ebuilds list another ebuild as dependency. What Portage does on --depclean is looking up the dependency tree, which subtrees are not referenced by the world file entries. These subtrees are the set of ebuilds to be removed.
_________________
Please make sure that you have searched for an answer to a question after reading all the relevant docs.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat 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