You are Here:
Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section



LL Software Update Notification..??

Author (Read 3324 times)

0 Members and 2 Guests are viewing this topic.

Re: LL Software Update Notification..??
« Reply #5 on: November 19, 2014, 06:48:08 PM »
 

Wirezfree

  • PayPal Supporter
  • Platinum Level Poster
  • *****
  • 1484
    Posts
  • Reputation: 405
  • Linux Lite "Advocate"
    • View Profile

  • CPU: i7-4790S

  • MEMORY: 16Gb

  • VIDEO CARD: Intel HD4600 (Integrated)
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 :)

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)
 

Re: LL Software Update Notification..??
« Reply #4 on: November 19, 2014, 04:14:31 PM »
 

rokytnji

  • Friganeer
  • Platinum Level Poster
  • **********
  • 1255
    Posts
  • Reputation: 139
    • View Profile

  • CPU: Intel Core2 Duo U9600

  • MEMORY: 4Gb

  • VIDEO CARD: Intel Mobile 4
Damn you sudo! :)


Code: [Select]
$ 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.
 

Re: LL Software Update Notification..??
« Reply #3 on: November 19, 2014, 03:37:56 PM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8778
    Posts
  • Reputation: 802
  • Linux Lite Member
    • View Profile
    • Linux Lite OS

  • CPU: Intel Core i9-10850K CPU @ 3.60GHz

  • MEMORY: 32Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
Damn you sudo! :)
 

Re: LL Software Update Notification..??
« Reply #2 on: November 19, 2014, 01:47:26 PM »
 

anon222

  • Muted
  • Gold Level Poster
  • *
  • 688
    Posts
  • Reputation: 192
  • Linux Lite Member
    • View Profile

  • CPU: Dual core Pentium E5700 3GHz

  • MEMORY: 3Gb

  • VIDEO CARD: GeForce GT 430
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: [Select]
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: [Select]
#!/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 :)
« Last Edit: November 19, 2014, 02:13:09 PM by misko_2083 »
 

LL Software Update Notification..??
« Reply #1 on: November 19, 2014, 11:24:23 AM »
 

Wirezfree

  • PayPal Supporter
  • Platinum Level Poster
  • *****
  • 1484
    Posts
  • Reputation: 405
  • Linux Lite "Advocate"
    • View Profile

  • CPU: i7-4790S

  • MEMORY: 16Gb

  • VIDEO CARD: Intel HD4600 (Integrated)
Hello More Knowledgeable Folks,

I found this whilst  "Googling", Is something like this feasible in LL.?
I just read the "Xfce & Update Notification"

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 :)

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)
 

 

-->
X Close Ad

Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section