The Linux Administration group is for the discussion of technical issues technical issues that arise during the administration of Linux systems, including maintaining the operating system and supporting end-user applications.

updating ubuntu

Hi,
Can someone write here the best ways to update ubuntu packages. Please write
specific commands, I am a newbie on ubuntu and I just want to update the
systems so that any software with bugs is upgraded to latest version
automatically. I have 30 such systems to be updated. Any ideas will be
helpful,
Thank you
--
upen,
emerge -uD life (Upgrade Life with dependencies)

Popular White Paper On This Topic

Since Ubuntu is a Debian release, it uses apt-get to install and update
packages. Here is how you accomplish this.
To update the system using apt-get type - 1) apt-get update, then 2) apt-get
upgrade
Tim

In /etc/crontab add lines for however often you want to update, and make
the user be "root" and the command should be:
apt-get update && aptitude safe-upgrade
This will *not* install kernel updates automatically. Kernel updates
would require that you use full-upgrade instead of safe-upgrade. You
probably want to do kernel upgrades manually though because if you got
Nvidia or ATI drivers from somewhere other than the repositories, there
is a *very* good chance your graphics will be lost during the kernel
upgrade. By "*very* good" I mean "I'd be surprised if your graphics
worked."

Hi,
if high speed internet available, you can use "apt-get" command
otherwise, try to find latest "ubuntu" & install it
apt-get update
apt-get upgrade
you can write very small shell script(just above two lines)
edit crontab file and update your system periodically

do we have to do give lenghty commands for just an
installation. if that is so why can't the software developer write an
installers script along with the package
so that a single command have to do the installation . that may limit the
understanding of how things works. providing that would be the understanding
of those who won't require such lenghty commands. what do you say.
Mag

That's not a lengthy command... We're all telling him to use
his /etc/crontab file to automate it and then put the command as:
apt-get update && aptitude -y safe-upgrade
That's really 2 commands strung together. First half checks for
updates. If it's able to do that (by being online), it then upgrades
what's available to be upgraded (and the -y automatically says "yes' to
all the "are you sure?"s). He didn't ask how to install a program in
general, which would be:
sudo apt-get install <program>
where sudo is like Simon Says, apt-get is the installer/uninstaller
program, install is what you want to do, and <program> is the name of
what you want to install
Instead he asked how to automate updates. Well, that's how you do it.

Copyright 1998-2015 Ziff Davis, LLC (Toolbox.com). All rights reserved. All product names are trademarks of their respective companies. Toolbox.com is not
affiliated with or endorsed by any company listed at this site.