Debian 8: Difference between revisions

From Wildsong
Jump to navigationJump to search
Brian Wilson (talk | contribs)
Created page with "You will be upgraded. File:10th.jpg"
 
Brian Wilson (talk | contribs)
mNo edit summary
Line 2: Line 2:


[[File:10th.jpg]]
[[File:10th.jpg]]
== Debian 7 to Debian 8 upgrades ==
[[Bellman]]
apt-get update
apt-get upgrade
apt-get dist-upgrade
"The main things you'll want to back up are the contents of /etc, /var/lib/dpkg, /var/lib/apt/extended_states and the output of dpkg --get-selections "*" (the quotes are important). If you use aptitude to manage packages on your system, you will also want to back up /var/lib/aptitude/pkgstates."
BACKUPS=/green/backups/debian7
mkdir -p $BACKUPS
cd /
tar cvzf $BACKUPS/etc.tar.gz etc
cd /var/lib
tar cvzf $BACKUPS/var_lib_dpkg.tar.gz dpkg
tar cvzf $BACKUPS/var_lib_extended_stats.tar.gz extended_stats
cd $BACKUPS
dpkg --get-selections "*" > dpkg-get-selections
Record the rest of the upgrade session.
cd
script -t 2>~/upgrade-8.time -a ~/upgrade-8.script
Per the notes to set locales with "dpkg-reconfigure locales", I set the default locale for en-US.UTF-8
[[Vastra2]]

Revision as of 21:26, 18 June 2015

You will be upgraded.

Debian 7 to Debian 8 upgrades

Bellman

apt-get update
apt-get upgrade
apt-get dist-upgrade

"The main things you'll want to back up are the contents of /etc, /var/lib/dpkg, /var/lib/apt/extended_states and the output of dpkg --get-selections "*" (the quotes are important). If you use aptitude to manage packages on your system, you will also want to back up /var/lib/aptitude/pkgstates."

BACKUPS=/green/backups/debian7
mkdir -p $BACKUPS
cd /
tar cvzf $BACKUPS/etc.tar.gz etc
cd /var/lib
tar cvzf $BACKUPS/var_lib_dpkg.tar.gz dpkg
tar cvzf $BACKUPS/var_lib_extended_stats.tar.gz extended_stats
cd $BACKUPS
dpkg --get-selections "*" > dpkg-get-selections

Record the rest of the upgrade session.

cd
script -t 2>~/upgrade-8.time -a ~/upgrade-8.script

Per the notes to set locales with "dpkg-reconfigure locales", I set the default locale for en-US.UTF-8


Vastra2