LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-20-2011, 07:40 AM   #1
bgordon
LQ Newbie
 
Registered: Oct 2011
Posts: 5

Rep: Reputation: Disabled
Scheduled use of Update manager and others


Hi,

I'm Barry and have used Linux Mint 11 (Katya) on and off for a few weeks now. I am very impressed with what I have found, and have slowly started to move over from Windows to Linux.

However, one of the issues that I could not resolve yet, was scheduled downloads. I have downloaded several download managers, but none of them have scheduling capabilities.

More important, however, is that I want to use the Mint Update Manager, Software Manager, and Package Manager in a scheduled fashion. My ISP provides for free downloads after certain hours, and I need to schedule those programs to download at specific times. Is this possible, and if so, how?

Thanks.
 
Old 10-20-2011, 09:40 AM   #2
SecretCode
Member
 
Registered: Apr 2011
Location: UK
Distribution: Kubuntu 11.10
Posts: 562

Rep: Reputation: 102Reputation: 102
I have not found a scheduling download manager for Linux either (haven't looked very hard). You might be able to get your favourite windows product to work using wine.

Tools like Mint Update and Package Manager can generally be set to do downloads only after you have confirmed them. For example, in Ubuntu "Update Manager" Settings allow you to check for updates but only notify you - the check for updates is not a huge amount of data. That would solve half your need - to avoid large downloads during your ISP's limited times - but you would still have to manually start the downloads yourself (I hope it's not 2am). I can't think of a way to schedule it for later using the GUI.

But as you're probably finding out you can do just about anything with the command line. The at command will do the job here, and you'll need to run it with root permissions when you set it up (so that the root account will do the updates at the scheduled time). Something like:

Code:
sudo at midnight 
apt-get install somepkg
- This form of at will wait for you to enter the commands to be scheduled and you'll need to press Control-D when you've finished.

Yes, at allows time formats like 'midnight'.

I wouldn't rush into this without thought - there may some catches - it would be better to run the downloads only and defer the installation but I'm not sure if you can do that with apt-get.
 
Old 10-20-2011, 09:51 AM   #3
bgordon
LQ Newbie
 
Registered: Oct 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
Wink Thanks

Thanks SecretCode. I'll try that. And by the way, it's great to get the first response from a fellow South-African...
 
Old 10-20-2011, 10:40 AM   #4
SecretCode
Member
 
Registered: Apr 2011
Location: UK
Distribution: Kubuntu 11.10
Posts: 562

Rep: Reputation: 102Reputation: 102
Aha!

You should fill in your location in your profile (if you want to).

What ISP are you with? When you mentioned limits on downloading times I thought, yes, we know about that kind of thing here. I don't have that kind of package but if it makes daytime speeds better it might be worthwhile.
 
Old 10-20-2011, 10:41 AM   #5
SecretCode
Member
 
Registered: Apr 2011
Location: UK
Distribution: Kubuntu 11.10
Posts: 562

Rep: Reputation: 102Reputation: 102
double post / database error

Last edited by SecretCode; 10-20-2011 at 10:47 AM.
 
Old 10-20-2011, 10:46 AM   #6
SecretCode
Member
 
Registered: Apr 2011
Location: UK
Distribution: Kubuntu 11.10
Posts: 562

Rep: Reputation: 102Reputation: 102
double post / database error
 
Old 10-20-2011, 03:43 PM   #7
bgordon
LQ Newbie
 
Registered: Oct 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
Hi SecretCode,

I use the Internet at work a lot, so I don't need such a big package at home. I use the 8.ta 2 Gig package at R149. It also includes 1 Gig between midnight and 6am. I have not used that, so I thought this allocation might be good for updates. That's why I asked the question about scheduling updates.

Depending on your coverage, I can say that 8.ta is great so far. Where I live it runs circles around Vodacom's speed.
 
Old 10-20-2011, 03:58 PM   #8
SecretCode
Member
 
Registered: Apr 2011
Location: UK
Distribution: Kubuntu 11.10
Posts: 562

Rep: Reputation: 102Reputation: 102
Ah. I'm guessing you don't have teenage kids. 15GB a month minimum and now trying out so-called "uncapped" (on ADSL of course ... that would be crazy on 3G).
 
Old 10-20-2011, 04:10 PM   #9
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
Put this into a script:
Code:
#! /bin/bash
apt-get update
apt-get --download-only --assume-yes upgrade
This will update the package database and download all updated packages, without installing them. This can be done later with your attention.
Look up the information for cron, which is used to schedule tasks on Linux, you can use that script with cron to download the packages.

The same way (using cron) you can schedule other downloads with wget. Look up the man-page for wget, especially the -i option, which will read URLs from a file and download them.
 
1 members found this post helpful.
Old 10-21-2011, 07:12 AM   #10
bgordon
LQ Newbie
 
Registered: Oct 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by SecretCode View Post
Ah. I'm guessing you don't have teenage kids. 15GB a month minimum and now trying out so-called "uncapped" (on ADSL of course ... that would be crazy on 3G).
Hi, hes, your guess is quite right! My children are still quite small!
 
Old 10-21-2011, 07:17 AM   #11
bgordon
LQ Newbie
 
Registered: Oct 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
TobiSGD,

I think you gave me the answer that I needed. Thanks.

Being a newbie, I would have liked a GUI option, but I think it is time to start playing more with the terminal...

Thanks.
 
  


Reply


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
[SOLVED] Debian update manager states updates available but won't update EDDY1 Debian 15 07-01-2011 12:07 AM
Update Manager -132 Days Since Update ...Fresh Install jv2112 Linux - Newbie 3 10-25-2010 05:02 AM
[SOLVED] Difference Between Synaptic Package Manager and Update Manager nasser019 Linux - Software 1 07-20-2010 08:12 AM
Unable to upgrade to ubuntu 7.10, update manager fails to update.... jonbvgood Linux - Software 2 02-05-2008 04:58 PM
Online backup manager: missing scheduled backups ronaldv Ubuntu 0 11-08-2007 03:14 PM


All times are GMT -5. The time now is 12:37 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration