Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
world update pulls in unneeded packages
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
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1158

PostPosted: Sat Mar 07, 2015 8:06 pm    Post subject: world update pulls in unneeded packages Reply with quote

I have been working on installing a a truly customized system using a chroot on a gentoo system, I have installed all packages via manual selection(no stage3)
everything is fine and I can boot into my system now
when I try updating using # emerge -uDNpv @world

I get 16 new packages to install that are not the dependencies of other packages(I checked using gentoolkit), some packages are openrc, sysvinit, some virtuals(I'm assuming these are parts of the world set, stage3)

is there anyway I can update my system without EVER installing these packages, I know there is no benefit, I just like having the packages I choose


thanks
Back to top
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1158

PostPosted: Sat Mar 07, 2015 8:10 pm    Post subject: Reply with quote

I have found the installed set, but it says that it will be removed soon from portage
Back to top
View user's profile Send private message
steveL
Watchman
Watchman


Joined: 13 Sep 2006
Posts: 5153
Location: The Peanut Gallery

PostPosted: Sat Mar 07, 2015 9:35 pm    Post subject: Re: world update pulls in unneeded packages Reply with quote

blakdeath wrote:
I get 16 new packages to install that are not the dependencies of other packages(I checked using gentoolkit), some packages are openrc, sysvinit, some virtuals(I'm assuming these are parts of the world set, stage3)

is there anyway I can update my system without EVER installing these packages, I know there is no benefit, I just like having the packages I choose

You can use /etc/portage/profile/package.provided; see the description of package.provided under /etc/portage/make.profile in man portage.

That will make portage act as if the dependency is pre-satisfied, and not install it itself.

If you want to see what is pulling in those packages, add the -t flag, so: emerge -uDNpv -t world
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43223
Location: 56N 3W

PostPosted: Sat Mar 07, 2015 11:23 pm    Post subject: Reply with quote

blakdeath,

The world set is empty on the stage3. It only contains packages that you explictily install.
equery d <package> will tell what depends on <package>
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1158

PostPosted: Sun Mar 08, 2015 11:17 am    Post subject: Reply with quote

plenty of packages do not haave dependencies(according to equery) but are still being installed, the package.provided method is working though:
WARNING: A requested package will not be merged because it is listed in
package.provided:

sys-apps/openrc pulled in by 'system'

is therre any way to hide these warnings though?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43223
Location: 56N 3W

PostPosted: Sun Mar 08, 2015 12:40 pm    Post subject: Reply with quote

blakdeath,

system packages way have incomplete dependency declarations.
For some trivial examples, nobody lists gcc or glibc as dependencies

If you don't use openrc, you really need a virtual that lists what you do use and openrc, so that portage is happy and package.provided entries are not required.
Maybe there is one already, virtual/service-manager ?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1158

PostPosted: Sun Mar 08, 2015 1:33 pm    Post subject: Reply with quote

that makes alot of sense, however, when I emerge the service-manager virtual, the system is still trying to pull in openrc and sysvinit when I run emerge -uDN
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43223
Location: 56N 3W

PostPosted: Sun Mar 08, 2015 7:22 pm    Post subject: Reply with quote

blakdeath,

What do you use in place of openrc and sysvinit?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1158

PostPosted: Sun Mar 08, 2015 10:05 pm    Post subject: Reply with quote

systemd
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43223
Location: 56N 3W

PostPosted: Sun Mar 08, 2015 10:11 pm    Post subject: Reply with quote

blakdeath,

systemd may not satisfy the virtuals.
On arch, I think you still need openrc for one file. ~arch has removed that dependency.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1158

PostPosted: Mon Mar 09, 2015 8:47 am    Post subject: Reply with quote

thanks, I think I'll go with the package.provided method then
Back to top
View user's profile Send private message
steveL
Watchman
Watchman


Joined: 13 Sep 2006
Posts: 5153
Location: The Peanut Gallery

PostPosted: Mon Mar 09, 2015 12:45 pm    Post subject: Re: world update pulls in unneeded packages Reply with quote

I really would add the -t flag, to: emerge -uDNpv -t world so that you can see what's pulling in the packages you don't want, according to portage, not equery.
Back to top
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1158

PostPosted: Mon Mar 09, 2015 10:43 pm    Post subject: Reply with quote

I'm seeing no difference with -t
same list, no indentation
Back to top
View user's profile Send private message
steveL
Watchman
Watchman


Joined: 13 Sep 2006
Posts: 5153
Location: The Peanut Gallery

PostPosted: Tue Mar 10, 2015 8:58 am    Post subject: Reply with quote

Weird; OK scratch that then ;)
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