If I generate a "Package Download Script" in Snyaptic can it be rn from a terminal window instead of Synaptic?
Alexander Skwar
alexanders.mailinglists+nospam at gmail.com
Tue Oct 23 12:28:21 UTC 2012
Hi
On Mon, Oct 22, 2012 at 7:52 AM, <jimmckenzie at earthlink.net> wrote:
> Running a script like my example requires constantly re-entering the password and if enough packages are contained can't be run unattended.
That's because you run many, many, many sudo commands and it might
timeout after some time.
Instead, run one sudo command and make it run apt-get as often as you
want it to. Like so:
sudo sh -c "apt-get update &&
apt-get upgrade &&
apt-get install linux-generic &&
apt-get install linux-headers-generic && …"
Having said that, I agree with someone who said that it would probably
a better idea to run only "one" apt-get install command, like so:
sudo sh -c "apt-get update &&
apt-get upgrade &&
apt-get install linux-generic linux-headers-generic …"
Regards,
Alexander
--
↯ Lifestream (Twitter, Blog, …) ↣ http://alexs77.soup.io/ ↯
↯ Chat (Jabber/Google Talk) ↣ a.skwar at gmail.com , AIM: alexws77 ↯
More information about the ubuntu-users
mailing list