Changes between Version 7 and Version 8 of ubuntu


Ignore:
Timestamp:
10/05/2018 08:09:05 AM (2 months ago)
Author:
Tim Harvey
Comment:

add several examples of using apt package management tool

Legend:

Unmodified
Added
Removed
Modified
  • ubuntu

    v7 v8  
    5252
    5353Personal Package Archives (PPAs) are package feeds that are not part of Ubuntu and can be used by people to distribute their own personally built packages. To use a PPA you need to first add it to your repository list and update your package sources.
     54
     55Some additional useful apt command examples:
     56 * update package feeds:
     57{{{#!bash
     58apt-get update
     59}}}
     60 * upgrade all installed packages to their latest versions:
     61{{{#!bash
     62apt-get upgrade
     63}}}
     64 * show what version of a package is available (regardless of if its installed), for example bluez:
     65{{{#!bash
     66apt-cache show bluez
     67}}}
     68 * clean out any old packages that have newer versions installed and no longer are dependencies of anything else installed:
     69{{{#!bash
     70apt-get autoremove
     71}}}
     72 * clean out apt caches:
     73{{{#!bash
     74apt-get clean
     75}}}
     76 * remove a package (leaves its configs), for example 'bluez':
     77{{{#!bash
     78apt-get remove bluez
     79}}}
     80 * remove a package including any config files (as they normally don't get removed), for example 'bluez':
     81{{{#!bash
     82apt-get purge bluez
     83}}}
     84 * show all available packages including version info:
     85{{{#!bash
     86apt list
     87}}}
     88 * show all installed packages including version info:
     89{{{#!bash
     90apt list --installed
     91}}}
     92
    5493
    5594References: