EUROPEAN UNION | COOKIES

Notice to visitors generally and to European Union Visitors, in particular. European Union requires that websites alert visitors if cookies are used. This website may use cookies (including third party cookies). Cookies are temporary files stored in your web browser. More info: Google Privacy Info.
Please consent to site cookies, where indicated. If you do not agree with these terms, please exit this site. Happy travels.
NOTE: unable to get cookies widget script to function in this template - hence no 'consent' button.
Please exist if you do not consent to cookies.

Pages

Sunday, 12 July 2015

LINUX - Installing Software / Installing Programs

Linux - Advanced Packaging Tool (APT)

Permissions:  prefix = sudo  / if anything doesn't run, put 'sudo' in front 

Summary from:

http://www.howtogeek.com/63997/how-to-install-programs-in-ubuntu-in-the-command-line/

Three-Step Process

1) Add (append / Edit) Repositories

Manually:
sudo nano /etc/apt/sources.list
Otherwise:
sudo add-apt-repository [repository name here]
eg  -    
sudo add-apt-repository ppa:tualatrix/ppa

2) Update Sources

sudo apt-get update

3) Install

sudo apt-get install [package name 1] [package name 2] [package name n]


Other / Maintenance

Remove Packages

sudo apt-get remove [package name 1] [package name 2] [package name n]

or

remove configuration files & associated directories (purging upon removal results in a subsequent “clean” install):

sudo apt-get remove –purge [package name 1] [package name 2] [package name n]
or

reserve command for removal & associated ones:

sudo apt-get autoremove

Upgrade Software

*update before upgrade

Global command upgrade:

sudo apt-get upgrade


If dependencies error / missing, following to upgrade:

sudo apt-get dist-upgrade [package name 1] [package name 2] [package name n]

sudo apt-get dist-upgrade

Simulate upgrade command to see list of packages to be upgraded (useful to see which programs would be interfered with by package upgrade):

sudo apt-get –s upgrade

 

Clean Cache

delete cache, but save newest version of packages in cache (I prefer this):

sudo apt-get autoclean

delete cache completely

sudo apt-get clean

 

Search Packages 

apt-cache search [search term 1] [search term 2] … [search term n]

eg    apt-cache search time zone python

 

Check Packages Installed

LIST installed packages

    sudo dpkg –list

SCROLL list installed packages

    sudo dpkg –list | less


SEARCH list - grep command

    dpkg –list | grep [search term]

---------------------

SOURCE

Above summary from:
http://www.howtogeek.com/63997/how-to-install-programs-in-ubuntu-in-the-command-line/

*Not entirely clear on the upgrade of software instructions