LINUX LITE 7.2 FINAL RELEASED - SEE RELEASE ANNOUNCEMENTS SECTION FOR DETAILS


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
LL Software Update Notification..??
#1
Hello More Knowledgeable Folks,

I found this whilst  "Googling", Is something like this feasible in LL.?
I just read the "[glow=green,2,300]Xfce & Update Notification[/glow]"

Software Update Notification

Dave
Upgrades WIP 2.6 to 2.8 - (6 X 2.6 to 2.8 completed on: 20/02/16 All O.K )
Linux Lite 3.0 Humming on a ASRock N3070 Mobo ~ btrfs RAID 10 Install on 4 Disks Smile

Computers Early days:
ZX Spectrum(1982) , HP-150 MS-DOS(1983) , Amstrad CPC464(1984) ,  BBC Micro B+64(1985) , My First PC HP-Vectra(1987)
Reply
#2
For some of the basic packaging operations, apt and yum are basically identical.
These are "similar" operations, but there are some differences in how they act.
These two are similar:
apt-get --simulate upgrade
yum check-update

I guess this one-liner can be used to display a notification if there are updates.
Code:
apt-get --simulate upgrade | grep "The following packages will be upgraded:"; if [ "${PIPESTATUS[1]}" -eq "0" ]; then notify-send -i /usr/share/icons/gnome/32x32/status/software-update-available.png -u normal Updates "There are updates available"; fi

Or in a script
Code:
#!/bin/bash
apt-get --simulate upgrade | grep "The following packages will be upgraded:"
 if [ "${PIPESTATUS[1]}" -eq "0" ]; then
      notify-send -i /usr/share/icons/gnome/32x32/status/software-update-available.png -u normal Updates "There are updates available."
 fi
The icon in the notification area is a tricky part.
Edit: This is not practical because you have to do sudo apt-get update first Smile
Reply
#3
Damn you sudo! Smile
Reply
#4
(11-19-2014, 08:37 PM)Jerry date Wrote: Damn you sudo! Smile


Code:
$ apt-cache policy sux
sux:
  Installed: (none)
  Candidate: (none)
  Version table:

;D
LL 3.6,2.8
Dell XT2 > Touchscreen Laptop
Dell 755 > Desktop
Acer 150 > Desktop
I am who I am. Your approval is not needed.
Reply
#5
Hi,

Sorry some of that went over me..
So do I take it an automated check & notification is not possible then.??
the edit to message sudo requirement is stopping it.

Dave
Upgrades WIP 2.6 to 2.8 - (6 X 2.6 to 2.8 completed on: 20/02/16 All O.K )
Linux Lite 3.0 Humming on a ASRock N3070 Mobo ~ btrfs RAID 10 Install on 4 Disks Smile

Computers Early days:
ZX Spectrum(1982) , HP-150 MS-DOS(1983) , Amstrad CPC464(1984) ,  BBC Micro B+64(1985) , My First PC HP-Vectra(1987)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)