HOW TO: update, clean cache, and remove 'orphans' - 1click

Archived topics about LMDE 1 and LMDE 2
Locked
GeneC

HOW TO: update, clean cache, and remove 'orphans' - 1click

Post by GeneC »

EDIT:
This is for LMDE only (not Mint main)...
AND, it ignores update levels, it will update everything.
SO, its not for everybody, just those who feel confident using it.... :wink:

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

I have found this to be the simplest way to keep upgraded, PLUS is cleans the cache, AND removes all 'orphaned' packages with one command... 8)

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(development). 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.

Details (upgrade-system)
https://packages.debian.org/jessie/upgrade-system
Package: upgrade-system (1.7.2.2)
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 all

sudo upgrade-system
I find it easiest to launch from "CliCompanion"
Image
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 3 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
GeneC

Re: HOW TO: update, clean cache, and remove 'orphans' - 1cli

Post by GeneC »

PS:
This is meant for LMDE only, not Mint main (With updated levels), as it will update everything available, nothing held back..

Just was notified that LMDE2 also uses update levels... Who would have 'thunk'.. :?: :lol:
(Seems a tad overcautious to me, but ...)
Last edited by GeneC on Fri Jun 12, 2015 4:52 pm, edited 1 time in total.
killer de bug

Re: HOW TO: update, clean cache, and remove 'orphans' - 1cli

Post by killer de bug »

Thanks!

I had never heard about this tool. I belong to the guys doing this by hand...
Habitual

Re: HOW TO: update, clean cache, and remove 'orphans' - 1cli

Post by Habitual »

GeneC wrote:PS:
This is meant for LMDE only, not Mint main (With updated levels), as it will update everything available, nothing held back..
Yes, you may want to specify LMDE in the thread title?
GeneC

Re: HOW TO: update, clean cache, and remove 'orphans' - 1cli

Post by GeneC »

Its in the LMDE2 forum.
I would, but not enough space to add to title... :wink:
I will edit the OP post though..
Habitual

Re: HOW TO: update, clean cache, and remove 'orphans' - 1cli

Post by Habitual »

How about a link here to that post there?
I ask a lot, don't I? :?:
Don't want new users to make any mistakes (at least one that is not their own, eg: Missing the LMDE reference)
User avatar
xfrank
Level 5
Level 5
Posts: 616
Joined: Sat Nov 24, 2012 6:09 pm
Location: Mexico City
Contact:

Re: HOW TO: update, clean cache, and remove 'orphans' - 1cli

Post by xfrank »

I did upgrade-system just now. It removed a lot of orphans in 5 steps. Maybe 300 orphans, I didn't check in details. Hope nothing important will be affected. :)
Active Distros in my computers: LM21.1 (Mate,Xfce); MXLinux (Xfce)
killer de bug

Re: HOW TO: update, clean cache, and remove 'orphans' - 1cli

Post by killer de bug »

Habitual wrote: Don't want new users to make any mistakes (at least one that is not their own, eg: Missing the LMDE reference)
If they don't know how to read... :lol:

xfrank wrote:It removed a lot of orphans in 5 steps. Maybe 300 orphans, I didn't check in details. Hope nothing important will be affected. :)
:shock: That's huge.... :?
User avatar
xfrank
Level 5
Level 5
Posts: 616
Joined: Sat Nov 24, 2012 6:09 pm
Location: Mexico City
Contact:

Re: HOW TO: update, clean cache, and remove 'orphans' - 1cli

Post by xfrank »

killer de bug wrote:
Habitual wrote: Don't want new users to make any mistakes (at least one that is not their own, eg: Missing the LMDE reference)
If they don't know how to read... :lol:

xfrank wrote:It removed a lot of orphans in 5 steps. Maybe 300 orphans, I didn't check in details. Hope nothing important will be affected. :)
:shock: That's huge.... :?
Yes but I never cleaned orphans in my LMDE since 2012 :lol:
Active Distros in my computers: LM21.1 (Mate,Xfce); MXLinux (Xfce)
Monsta
Level 10
Level 10
Posts: 3071
Joined: Fri Aug 19, 2011 3:46 am

Re: HOW TO: update, clean cache, and remove 'orphans' - 1cli

Post by Monsta »

I only needed to do such cleanups (using gtkorphan) after the upgrading from one Update Pack to another (and the last one - during the upgrade to LMDE 2).
I don't think it'll be needed from now on - update situation is totally different when your base is Debian Stable :)
Monsta
Level 10
Level 10
Posts: 3071
Joined: Fri Aug 19, 2011 3:46 am

Re: HOW TO: update, clean cache, and remove 'orphans' - 1cli

Post by Monsta »

GeneC wrote:PS:
This is meant for LMDE only, not Mint main (With updated levels), as it will update everything available, nothing held back..
BTW, LMDE 2 has the same mintUpdate (with levels). Old mintupdate-debian package is left only in LMDE 1 repos.
GeneC

Re: HOW TO: update, clean cache, and remove 'orphans' - 1cli

Post by GeneC »

Monsta

You know, I just noticed that myself... :oops: I guess after years of running Debian Testing and SID, (and not using LMDE update tool on LMDE2) I never expected a distro based on Debian Stable to have any restrictions on updates. This seems odd, but I guess they have a reason.
I'll edit the OP... :wink:
Monsta
Level 10
Level 10
Posts: 3071
Joined: Fri Aug 19, 2011 3:46 am

Re: HOW TO: update, clean cache, and remove 'orphans' - 1cli

Post by Monsta »

So, this tool can actually be used in the main Mint as well (it's present in Ubuntu repos), with the same disclaimer :)
Locked

Return to “LMDE Archive”