LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-27-2023, 04:40 PM   #1
gregors
Member
 
Registered: Mar 2018
Posts: 177

Rep: Reputation: Disabled
How to check for available updates?


Hi there!

I would like to get informed if software updates are available. Is there some kind of small tool for that?

TIA

Gregor
 
Old 10-27-2023, 04:48 PM   #2
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,144
Blog Entries: 21

Rep: Reputation: 3482Reputation: 3482Reputation: 3482Reputation: 3482Reputation: 3482Reputation: 3482Reputation: 3482Reputation: 3482Reputation: 3482Reputation: 3482Reputation: 3482
Whatcha running?
 
Old 10-27-2023, 04:50 PM   #3
gregors
Member
 
Registered: Mar 2018
Posts: 177

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by rokytnji View Post
Whatcha running?
Devuan Daedalus, XFCE
 
Old 10-27-2023, 08:37 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,363
Blog Entries: 28

Rep: Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148
The sequence of commands that I prefer is

Code:
apt update && apt upgrade
apt autoclean && apt autoremove
See man apt for more.
 
Old 10-31-2023, 09:43 PM   #5
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,144
Blog Entries: 21

Rep: Reputation: 3482Reputation: 3482Reputation: 3482Reputation: 3482Reputation: 3482Reputation: 3482Reputation: 3482Reputation: 3482Reputation: 3482Reputation: 3482Reputation: 3482
Yeah. I do the same in terminal as frankbell suggested . You are allowed to peruse updates before saying yes.

Everything he mentioned you need to be sudo user so it is like

Code:
sudo apt update
Code:
sudo apt upgrade
since you mentioned XFCE. XFCE Terminal is what you use to do this.
 
Old 10-31-2023, 10:25 PM   #6
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,658
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
I use these commands often, so... then if you know or expect you can add -y,

Code:
apt upgrade -y
apt autoremove -y
Answer yes to questions, won't ask if you are sure.
 
Old 11-01-2023, 09:16 AM   #7
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,887
Blog Entries: 28

Rep: Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534
package-update-indicator
Description: Notify about available software updates
This small utility which regularly checks for software updates and notifies
the user about available updates using desktop notifications and either
a status notifier icon or a system tray icon.
.
It is primarily intended for desktops which do not already have this
functionality built-in, such as Xfce.
 
1 members found this post helpful.
Old 11-02-2023, 03:30 PM   #8
gregors
Member
 
Registered: Mar 2018
Posts: 177

Original Poster
Rep: Reputation: Disabled
Thank you for your replies.

So, since I don't want to use sudo and such it seems I will have to set up two cron jobs: One for root that checks for available updates, and one for 'user' that checks if root has found something to update.

I think the two jobs can "communicate" via placing/checking files in /tmp. If I put the first (root) part on half hours (on x:30 hours) and the second (user) part on full hours I would have an hourly check.

Gregor

PS: AFAIK package-update-indicator is gnome. I don't use gnome.

Last edited by gregors; 11-02-2023 at 03:34 PM.
 
Old 11-02-2023, 07:36 PM   #9
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,364

Rep: Reputation: 2752Reputation: 2752Reputation: 2752Reputation: 2752Reputation: 2752Reputation: 2752Reputation: 2752Reputation: 2752Reputation: 2752Reputation: 2752Reputation: 2752
You don't need 2 jobs.
just get the root one to notify the user somehow eg put a file in user's home dir.
Remember, root can set the file's perms and even change the ownership if needed...
 
Old 11-02-2023, 09:12 PM   #10
gregors
Member
 
Registered: Mar 2018
Posts: 177

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by chrism01 View Post
You don't need 2 jobs.
just get the root one to notify the user somehow eg put a file in user's home dir.
Remember, root can set the file's perms and even change the ownership if needed...
You're right - after all it's two tasks. One is the check for updates, two is some kind of check/notify if something has been found.

I think I have a good picture now.

Gregor
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How to Check Available Package Updates in Linux LXer Syndicated Linux News 0 12-31-2020 03:02 AM
LXer: How To Check Available Security Updates On Red Hat (RHEL) And CentOS System? LXer Syndicated Linux News 0 05-27-2019 03:45 AM
got a Fedora 9 indication that yum updates were available, but there were no updates landonmkelsey Linux - Software 12 02-08-2009 09:53 AM
yum check-update says no updates when there are updates? MarkEHansen Linux - General 7 12-29-2006 05:16 PM
Boot disk; check. CD in drive; check. Doesn't work; check. Hal DamnSmallLinux 7 02-04-2004 02:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration