LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint
User Name
Password
Linux Mint This forum is for the discussion of Linux Mint.

Notices

Reply
 
Search this Thread
Old 09-12-2010, 10:09 AM   #1
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Blog Entries: 62

Rep: Reputation: 54
'sudo apt-get dist-upgrade' on a weekly schedule for LMDE


Is there any way to set the rolling-release Linux Mint Debian Edition (LMDE) to automatically run 'sudo apt-get dist-upgrade' in the background on a weekly schedule? This will remove the annoyance of having to type the command every day or week.
 
Old 09-12-2010, 12:07 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,626

Rep: Reputation: 518Reputation: 518Reputation: 518Reputation: 518Reputation: 518Reputation: 518
Yes.

You could crontab it yourself. Or use apticron/cron-apt if available in Mint.
 
Old 09-12-2010, 11:38 PM   #3
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Blog Entries: 62

Original Poster
Rep: Reputation: 54
I was able to add the following line to root's crontab:

Code:
0 9 * * 1 sudo apt-get update && sudo apt-get dist-upgrade
Now, I will be sure to keep my computer on except for reboots, allowing apt-get to do its job.

Thread marked Solved.

Last edited by Kenny_Strawn; 09-12-2010 at 11:54 PM. Reason: Notified the other poster in this thread that I am marking this thread solved
 
Old 10-07-2010, 01:28 PM   #4
z06gal
LQ Newbie
 
Registered: Apr 2010
Posts: 18

Rep: Reputation: 0
Quote:
Originally Posted by Kenny_Strawn View Post
I was able to add the following line to root's crontab:

Code:
0 9 * * 1 sudo apt-get update && sudo apt-get dist-upgrade
Now, I will be sure to keep my computer on except for reboots, allowing apt-get to do its job.

Thread marked Solved.

Can you post how you did this? I am running Mint Debian and would like to get this set up. Thanks.


Robin
 
Old 10-07-2010, 01:33 PM   #5
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,626

Rep: Reputation: 518Reputation: 518Reputation: 518Reputation: 518Reputation: 518Reputation: 518
Quote:
Originally Posted by z06gal View Post
Can you post how you did this? I am running Mint Debian and would like to get this set up. Thanks.


Robin
run: `crontab -e -u root` (as root) and enter the line above (begins with 0 9 ..).

Automatically updating everything is not generally recommended. It can break things at 2 AM, causing you to get paged out of bed. Of course, it's your choice.
 
Old 10-07-2010, 01:52 PM   #6
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,732
Blog Entries: 12

Rep: Reputation: 456Reputation: 456Reputation: 456Reputation: 456Reputation: 456
Safer to just use cron-apt to download updates, then you can run apt-get dist-upgrade later.

Never a good idea to allow automatic updates in Stable, it's insane to do automatic updates in testing or unstable.

Also a good idea to have both apt-listbugs and apt-listchanges installed.

If you want you can install:
unattended-upgrades - automatic installation of security upgrades


Still not a good idea on testing or unstable.

Easier and safer to just create an alias for apt-get update && apt-get dist-upgrade -yd

Then look to see what is being updated/installed/removed. If everything looks OK then you run
apt-get dist-upgrade.

Although you should be using aptitude, it is the recommended tool to use in Debian.
aptitude user's manual - http://algebraicthunk.net/~dburrows/...titude/doc/en/
 
1 members found this post helpful.
Old 10-07-2010, 03:27 PM   #7
z06gal
LQ Newbie
 
Registered: Apr 2010
Posts: 18

Rep: Reputation: 0
Quote:
Originally Posted by craigevil View Post
Safer to just use cron-apt to download updates, then you can run apt-get dist-upgrade later.

Never a good idea to allow automatic updates in Stable, it's insane to do automatic updates in testing or unstable.

Also a good idea to have both apt-listbugs and apt-listchanges installed.

If you want you can install:
unattended-upgrades - automatic installation of security upgrades


Still not a good idea on testing or unstable.

Easier and safer to just create an alias for apt-get update && apt-get dist-upgrade -yd

Then look to see what is being updated/installed/removed. If everything looks OK then you run
apt-get dist-upgrade.

Although you should be using aptitude, it is the recommended tool to use in Debian.
aptitude user's manual - http://algebraicthunk.net/~dburrows/...titude/doc/en/

Excellent advice. I had not thought about this but I usually do not install until the stable release. I have been curious as to what debian is all about plus the fact that I love Mint editions. Thanks.
 
  


Reply

Tags
apt-get


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
apt-get question: dist-upgrade vs upgrade Arodef Fedora 9 06-15-2012 01:33 PM
apt-get dist-upgrade nixonfamilyusa Linux - Software 7 07-14-2006 06:01 PM
Schedule automatic apt-get upgrade? nicedreams Linux - Software 6 12-15-2005 07:45 PM
apt-get dist upgrade Lincthra Ubuntu 2 05-25-2005 01:57 AM
What's the difference between apt-get upgrade and apt-get dist-upgrade? davidas Linux - Newbie 4 04-04-2004 08:19 PM


All times are GMT -5. The time now is 02:33 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration