View previous topic :: View next topic |
Author |
Message |
finalturismo Guru
Joined: 06 Jan 2020 Posts: 410
|
Posted: Tue Jan 18, 2022 8:11 pm Post subject: Anyway to update only UPDATABLE PACKAGES |
|
|
So is there a way to update only updatable package on Gentoo.
For example if i run into packages blocking a system update instead of spending 5 hours excluding packages and updating packages 1 by 1 until i can get past the conflict or blocked package etc...
Can i just run a command that only updates the packages that can update without issue? |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30917 Location: here
|
Posted: Tue Jan 18, 2022 8:40 pm Post subject: |
|
|
Usually blocked package are caused by a specific problem, it would be better to post the output to get help. _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
finalturismo Guru
Joined: 06 Jan 2020 Posts: 410
|
Posted: Tue Jan 18, 2022 9:16 pm Post subject: |
|
|
fedeliallalinea wrote: | Usually blocked package are caused by a specific problem, it would be better to post the output to get help. |
Yes i know and i can fix the issues by playing around and following error messages but i was wondering if it is a possibility. |
|
Back to top |
|
|
szatox Advocate
Joined: 27 Aug 2013 Posts: 3137
|
Posted: Tue Jan 18, 2022 9:36 pm Post subject: |
|
|
Yes, emerge does perform partial upgrades automagically if possible.
If it does not offer any updates, it means it was not able to find viable options. You can tell it to try harder by increasing --backtrack= value (i think 5 is the default, manual suggests 30 when required, you can provide an arbitrary value), possibly also --with-bdeps (though this one is probably just a waste of time)
There are no guarantees that a solution will be found (even if one exists), but some blocks can be just waited out, and others require manual intervention from you. |
|
Back to top |
|
|
grknight Retired Dev
Joined: 20 Feb 2015 Posts: 1660
|
Posted: Tue Jan 18, 2022 9:43 pm Post subject: |
|
|
The minimum command to update all packages is: Code: | emerge --update --deep @world |
This will not guarantee removal of any conflicts particularly when a USE flag is changed system-wide in the profile such as with PYTHON_TARGETS. For this reason, the --changed-use or --newuse options are often necessary to overcome this.
Solving the real issues and updating at regular intervals will keep things rather quiet. |
|
Back to top |
|
|
finalturismo Guru
Joined: 06 Jan 2020 Posts: 410
|
Posted: Tue Jan 18, 2022 9:45 pm Post subject: |
|
|
grknight wrote: | The minimum command to update all packages is: Code: | emerge --update --deep @world |
This will not guarantee removal of any conflicts particularly when a USE flag is changed system-wide in the profile such as with PYTHON_TARGETS. For this reason, the --changed-use or --newuse options are often necessary to overcome this.
Solving the real issues and updating at regular intervals will keep things rather quiet. |
Python updates steal a day or 2 of my life sometimes and this is the 4th times iam having to do this.!?!?!!?! |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21635
|
Posted: Tue Jan 18, 2022 10:19 pm Post subject: |
|
|
Over a long enough time period, yes, you can rack up a mess that requires several hours to untangle, particularly if you never develop proficiency in applying the information Portage is giving you. You can also make things worse by keeping several non-identical systems, and then needing to solve each of them individually. |
|
Back to top |
|
|
finalturismo Guru
Joined: 06 Jan 2020 Posts: 410
|
Posted: Tue Jan 18, 2022 11:20 pm Post subject: |
|
|
Hu wrote: | Over a long enough time period, yes, you can rack up a mess that requires several hours to untangle, particularly if you never develop proficiency in applying the information Portage is giving you. You can also make things worse by keeping several non-identical systems, and then needing to solve each of them individually. |
Yes well the reason i ask is i manage about 5 Gentoo systems a few which arnt technically mine... |
|
Back to top |
|
|
sam_ Developer
Joined: 14 Aug 2020 Posts: 1678
|
Posted: Tue Jan 18, 2022 11:55 pm Post subject: |
|
|
finalturismo wrote: | grknight wrote: | The minimum command to update all packages is: Code: | emerge --update --deep @world |
This will not guarantee removal of any conflicts particularly when a USE flag is changed system-wide in the profile such as with PYTHON_TARGETS. For this reason, the --changed-use or --newuse options are often necessary to overcome this.
Solving the real issues and updating at regular intervals will keep things rather quiet. |
Python updates steal a day or 2 of my life sometimes and this is the 4th times iam having to do this.!?!?!!?! |
It's not normal to have to do this, see Hu_'s comments. We can actually help you understand and fix them quickly if you let us. |
|
Back to top |
|
|
finalturismo Guru
Joined: 06 Jan 2020 Posts: 410
|
Posted: Wed Jan 19, 2022 5:42 am Post subject: |
|
|
sam_ wrote: | finalturismo wrote: | grknight wrote: | The minimum command to update all packages is: Code: | emerge --update --deep @world |
This will not guarantee removal of any conflicts particularly when a USE flag is changed system-wide in the profile such as with PYTHON_TARGETS. For this reason, the --changed-use or --newuse options are often necessary to overcome this.
Solving the real issues and updating at regular intervals will keep things rather quiet. |
Python updates steal a day or 2 of my life sometimes and this is the 4th times iam having to do this.!?!?!!?! |
It's not normal to have to do this, see Hu_'s comments. We can actually help you understand and fix them quickly if you let us. |
Ty i posted the results in other post. |
|
Back to top |
|
|
|