Useful command line for Linux

Useful command line for Linux

Update apps

sudo apt-get update && sudo apt-get upgrade

Install apps

sudo add-apt-repository [repository name here]
sudo add-apt-repository ppa:tualatrix/ppa
sudo apt-get install [package name]

Removing Packages

sudo apt-get remove [package name] 

or 

sudo apt-get remove –purge [package name]
sudo apt-get autoremove

Upgrading apps

sudo apt-get update
do-release-upgrade -d
sudo apt-get dist-upgrade

Fix problems

sudo dpkg --configure -a

sudo apt-get install -f

sudo apt-get clean

sudo apt-get update

If it fails then try to type:

 sudo dpkg --configure -a --force-all

 

Leave a Reply