View previous topic :: View next topic |
Author |
Message |
xanrer n00b
Joined: 18 Nov 2024 Posts: 20
|
Posted: Fri Nov 29, 2024 10:10 pm Post subject: A way to display required update count in notifications? |
|
|
Is there a command in Gentoo that shows how many updates available at that second, I don't mean the names of the packages I just need the exact number. If there is no command like that no problem either, I can just use `emerge -pv @system | grep Total` too but it wants sudo permissions and the implementation I found is outdated. What I want to do with this information is to send it through notify-send and when I press a certain key combination it just sent me the number. |
|
Back to top |
|
|
grknight Retired Dev
Joined: 20 Feb 2015 Posts: 1934
|
Posted: Fri Nov 29, 2024 11:24 pm Post subject: |
|
|
Please don't use emerge -pv @system for any existing system as it is pointless.
If anything, one should use emerge -pvuDU @world, optionally with --getbinpkg=n if binpkgs are default on, to test for updates. |
|
Back to top |
|
|
xanrer n00b
Joined: 18 Nov 2024 Posts: 20
|
Posted: Fri Nov 29, 2024 11:56 pm Post subject: |
|
|
I got an interesting and really long output from `sudo emerge -pvuDU --getbinpkg=n @world | grep Total`
Firstly, `Total: 119 packages (5 upgrades, 1 downgrade, 109 new, 2 in new slots, 2 reinstalls), Size of downloads: 524498 KiB` it says here 109 and `sudo emerge --sync` doesn't update anything. I thought I made everything binary but seems I somehow failed to do that. I specifically added these 3 lines to `/etc/portage/make.conf`
Code: | FEATURES="getbinpkg"
FEATURES="binpkg-request-signature"
EMERGE_DEFAULT_OPTS="${EMERGE_DEFAULT_OPTS} --getbinpkg" |
Second, despite `| grep Total` it actually gives me the entire output. Which is probably due to me misunderstanding the usage of grep. |
|
Back to top |
|
|
|