thepiman
Posts: 42
Joined: Mon Nov 19, 2012 5:06 pm

Is there a command to update to to wheezy 2013-02-09

Sun Feb 24, 2013 7:31 pm

Hi

I have an older version of wheezy. is there a command that updates it all without deleting any of my settings ?

Will this do it:

Code: Select all

sudo apt-get update
ThePiMan - "Oh Yeah"

User avatar
tonyhughes
Posts: 951
Joined: Wed Dec 26, 2012 3:46 am

Re: Is there a command to update to to wheezy 2013-02-09

Sun Feb 24, 2013 7:43 pm

That just updates the list of packages.

To upgrade installed packages run

Code: Select all

sudo apt-get upgrade
That doesn't upgrade to the latest Wheezy though.

You can run

Code: Select all

sudo apt-get dist-upgrade
which will bring you a little closer to latest version, with a bit more smarts around updated packages and dependencies. That would generally be considered enough.

Nuclear method available as well... re-image with latest version (backup everything first).

thepiman
Posts: 42
Joined: Mon Nov 19, 2012 5:06 pm

Re: Is there a command to update to to wheezy 2013-02-09

Sun Feb 24, 2013 7:55 pm

ok thank you. I dont want to nuke it as i have a webserver running on it.
ThePiMan - "Oh Yeah"

User avatar
tonyhughes
Posts: 951
Joined: Wed Dec 26, 2012 3:46 am

Re: Is there a command to update to to wheezy 2013-02-09

Sun Feb 24, 2013 8:00 pm

Webservers are typically very easy to backup and restore.

Apache, copy the /etc/apache2/ directory to capture all the config.
Copy /var/log/apache2/ to capture all the http logs.
Copy /var/www/ to capture your website.
Copy any external dependencies (e.g. scripts or databases).

Nuke your install. Image latest. Install webserver, copy config, logs, and sites back in.

Without databases, the backup and restore could be done in 2 minutes. (Excluding the new OS install).

Mobius
Posts: 238
Joined: Thu Aug 30, 2012 1:07 am
Location: San Angelo, Texas USA

Re: Is there a command to update to to wheezy 2013-02-09

Mon Feb 25, 2013 3:06 am

I had a problem recently using "sudo apt-get upgrade" after doing "sudo apt-get update" so I recommend doing the update first, followed by "sudo apt-get dist-upgrade" instead of the generic upgrade command.

Cloudcentric
Posts: 982
Joined: Fri Sep 14, 2012 9:13 am

Re: Is there a command to update to to wheezy 2013-02-09

Mon Feb 25, 2013 8:36 am

sudo su
apt-get update
apt-get dist-upgrade
sync
reboot
I know everything about nothing"

Return to “Beginners”