View previous topic :: View next topic |
Author |
Message |
rzdndr Tux's lil' helper
Joined: 26 Jul 2024 Posts: 93
|
Posted: Tue Oct 15, 2024 3:53 am Post subject: emerge usage that is confusing |
|
|
Hello,
I am checking for updates every morning using these steps:
Code: | emerge --sync
emerge -auUDv --with-bdeps=y @world
emerge --ask --depclean
dispatch-conf |
I have arrived at those steps while I was reading on the update/upgrade procedures. Would this usage be correct?
What got me confused is, two days in a row, there were no updates for my system. Then I went to the https://wiki.gentoo.org/wiki/Upgrading_Gentoo page and saw some comment like this
Quote: | root #emerge -avuDN @world
--changed-use may be used in place of --newuse, but only if you do not build binary packages. --changed-use will not trigger reinstallation when disabled USE flags are added or removed from a package. See the Binary package guide. |
When I did emerge -avuDN --with-bdeps=y @world I had 3 reinstalls. But emerge -auUDv --with-bdeps=y @world does not show any updates.
I want to have my system up to date. And since I only emerge a couple of binary packages (firefox-bin, google-chrome, and libreoffice), and do not build them (as binary packages), I should use --newuse I believe. Would that be correct?
Regards |
|
Back to top |
|
|
Banana Moderator
Joined: 21 May 2004 Posts: 1680 Location: Germany
|
|
Back to top |
|
|
rzdndr Tux's lil' helper
Joined: 26 Jul 2024 Posts: 93
|
Posted: Tue Oct 15, 2024 6:12 am Post subject: |
|
|
Banana wrote: | Your way to keep an updated system looks fine. Update often to avoid any emerge conflicts because of to many changes. But doing it daily is kind of overkill. Once a week or even every two weeks is fine.
Make sure you check the news items, too.
Here is a topic which may shed some light about the emerge --changed-use vs --newuse question: https://forums.gentoo.org/viewtopic-p-8719502.html |
I got that habit from using a rolling release system prior to gentoo. You might be right about the overkill.
Thanks for the information on --changed-use and --newuse.
Regards |
|
Back to top |
|
|
rzdndr Tux's lil' helper
Joined: 26 Jul 2024 Posts: 93
|
Posted: Tue Oct 15, 2024 8:50 am Post subject: |
|
|
Based on the comment in here: https://wiki.gentoo.org/wiki/Gentoo_Cheat_Sheet#Package_upgrades
Quote: | Package upgrades
Upgrade all packages in the world set, their dependencies (--deep), and packages that have USE flag changes (avoiding unnecessary rebuilds when USE changes have no impact):
root #emerge --ask --verbose --update --deep --changed-use @world
The --newuse may be used in place of--changed-use to make sure that all package use flags reflect the current state of those in the Gentoo repository, though this will entail more rebuilds. The --with-bdeps=y can be used to update build time dependencies also. |
I think I will be using the --newuse option. I would like to keep the use flags to be the same as they are in the gentoo repo's. Would not mind more/extra rebuilds. But will be checking both --changed-use and --newuse when updating my system to see if these agree with each other. |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 4952 Location: Bavaria
|
Posted: Tue Oct 15, 2024 11:10 am Post subject: Re: emerge usage that is confusing |
|
|
rzdndr wrote: | I am checking for updates every morning using these steps:
Code: | emerge --sync
emerge -auUDv --with-bdeps=y @world
emerge --ask --depclean
dispatch-conf |
[...] Would this usage be correct? |
Yes! ... but, if you have the package "eix", you might try an "eix-sync" instead "emerge --sync" ... for me it is very interesting to see also changes from other packages I dont use ... (because it cold be I see an interesting package )
My opinion on the daily update: keep doing it. It's a thousand times better to update frequently than too rarely. Even if I only update once or twice a week, I wouldn't consider it overkill (my former colleague at work also did it daily). _________________ https://wiki.gentoo.org/wiki/User:Pietinger |
|
Back to top |
|
|
rzdndr Tux's lil' helper
Joined: 26 Jul 2024 Posts: 93
|
Posted: Tue Oct 15, 2024 2:23 pm Post subject: Re: emerge usage that is confusing |
|
|
pietinger wrote: | rzdndr wrote: | I am checking for updates every morning using these steps:
Code: | emerge --sync
emerge -auUDv --with-bdeps=y @world
emerge --ask --depclean
dispatch-conf |
[...] Would this usage be correct? |
Yes! ... but, if you have the package "eix", you might try an "eix-sync" instead "emerge --sync" ... for me it is very interesting to see also changes from other packages I dont use ... (because it cold be I see an interesting package )
My opinion on the daily update: keep doing it. It's a thousand times better to update frequently than too rarely. Even if I only update once or twice a week, I wouldn't consider it overkill (my former colleague at work also did it daily). |
Will try eix the next time.
When I do updates every week there will be more things to update, and might take time. So it is much better in my case to do that daily.
Regards |
|
Back to top |
|
|
|