Archive

Archive for June, 2017

Upgrade Debian Jessie to Strech

June 24, 2017 Comments off

The upgrade process is easy via the cli.
Just complete the following and answer any questions.
I let the system restart daemons automatically and kept original conf files.
This has worked on three Debian 8 systems without a hitch.

apt-get update
apt-get upgrade
apt-get dist-upgrade
cp /etc/apt/sources.list /etc/apt/sources.list_backup
sed -i ‘s/jessie/stretch/g’ /etc/apt/sources.list
apt-get update
apt list –upgradable
apt-get upgrade
apt-get dist-upgrade

After completing you can reboot and autoremove old packages.

Advertisements
Categories: sysadmin

copy your debian installed packages to a new machine

June 17, 2017 Comments off

Run this to retrieve a list of installed packages:

dpkg -l | grep ^ii | awk ‘{print $2}’ > installed_packages

Then install on new system with:

apt-get install $(cat installed_packages)

You should probably look at installed_packages and remove any obvious
errors.

Categories: sysadmin