Author Topic: Upgrade and Clean with ONE command - Package: upgrade-system (1.7.2.3)  (Read 891 times)

Offline GeneC

  • Full Member
  • ***
  • Posts: 126
I have found this to be the simplist way to keep upgraded, PLUS is cleans the cache, AND removes all 'orphaned' packages with one command.

the package is in the repos... (upgrade-system)

Disclaimer:
I have used it with no issues on several distros for years, BUT be advised watch what orphans it removes, and you will have no surprises.
IF you do compiling and have lots of '*.dev files.  IT WILL see those as orphans and remove them.  This will not hurt your system, but you will need to re-install some ot them when compiling next.

Code: [Select]
gene@sparky:~$ apt-cache policy upgrade-system
upgrade-system:
  Installed: 1.7.2.3
  Candidate: 1.7.2.3
  Version table:
 *** 1.7.2.3 0
        500 http://ftp.us.debian.org/debian/ testing/main amd64 Packages
        100 /var/lib/dpkg/status

Details (upgrade-system)
https://packages.debian.org/stretch/upgrade-system
Quote
Package: upgrade-system (1.7.2.3)
command for upgrading and sanitizing a Debian system

Upgrade-system offers a convenient way to keep a Debian system up-to-date, yet free from accumulated cruft such as obsolete libraries.

It is particularly useful on systems that mix packages from different releases (stable/testing/unstable) and on desktop systems where packages are frequently installed or removed according to evolving user tastes.

By default, it is configured to purge all packages that are not listed as another package's dependency. Less drastic settings are possible by editing /etc/upgrade-system.conf(5).


The command to launch is:
Code: [Select]
sudo upgrade-system
I find it easiest to launch from "CliCompanion"
http://i285.photobucket.com/albums/ll58/genecharb/55.png

Offline basil

  • Newbie
  • *
  • Posts: 8
thanks for the tip  :)

Offline detipco

  • Newbie
  • *
  • Posts: 8
Hi GenC,
if you use synaptic, it is not necessary to work with ugrade-system, all functions are included in synaptic.
It is just the opposite, because the pinned packages in synaptic will be ignored!
 btw,  "Sparky APTus Upgrade lets you upgrade the system", does the same.

Friendly regards  ;)