User Tools

Site Tools


linux:ubuntu_distupgrade

Ubuntu distribution upgrade

Command Line Way to Upgrade Ubuntu

Before upgrading to Ubuntu 17.04 Zesty Zapus, please make sure to update and upgrade the current Ubuntu release using the following commands:

sudo apt update
sudo apt upgrade
sudo apt dist-upgrade

Now run the following command to install update-manager-core package:

sudo apt install update-manager-core

Once the update-manager-core package is installed, edit the /etc/update-manager/release-upgrades file and set Prompt value to normal. Prompt=normal

sudo gedit /etc/update-manager/release-upgrades

Now finally, run do-release-upgrade command to upgrade to Ubuntu 17.04 Zesty Zapus:

sudo do-release-upgrade -d

Once upgrade process is finished, restart the system and check the Ubuntu version using the following command:

lsb_release -a

List only installed packages

apt list --installed

Install specific package

apt install /tmp/mypackage.deb

Remove a package

apt purge <pkg_name>

Remove unneeded packages

apt autoremove

List content of a package

dpkg -L <pkg_name>
apt-file list <pkg_name>

To find the package correspondant to a file

dpkg -S /tmp/myfile
apt-file search /tmp/myfile
linux/ubuntu_distupgrade.txt · Last modified: 2024/08/27 14:44 by manu