Re: Cleaning MacPorts from old (unused) ports versions

2015-05-28 Thread Ryan Schmidt

On May 28, 2015, at 12:36 AM, Mojca Miklavec wrote:
 On Thu, May 28, 2015 at 4:20 AM, Brandon Allbery wrote:
 On Wed, May 27, 2015 at 10:10 PM, Gustavo Seabra wrote:
 
 So, there were 4 (!) versions of grace installed! That should be remnants
 of old MacPorts installations. I suppose similar multiple versions must be
 present for a number of different ports.
 
 My question is: is there a way to hunt and remove those older versions of
 ports? (preferably, some automatic way to remove them all, from all
 programs?)
 
 
 Those are preserved old versions, from `port upgrade` --- so, if something
 is broken for you in the new version, you can easily roll back.
 
 `sudo port uninstall inactive` will clear them. If you decide you don't want
 to keep them at all, use `sudo port -u upgrade outdated`.
 
 This is true, but I agree that it would be great to have something like
 sudo port uninstall --all grace
 
 Otherwise one has to manually copy and paste every single version (if
 one wants to keep older versions for other ports except with the
 interactive version of the port command).

You can do that already:

sudo port uninstall installed and grace

(uninstalls ports named grace that are installed)

Or if you meant: uninstall only the inactive ones:

sudo port uninstall grace and inactive

(uninstalls ports named grace that are inactive)


___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Cleaning MacPorts from old (unused) ports versions

2015-05-27 Thread Gustavo Seabra
Hi all,

As I was following a suggestion to my previous email, I stumbled upon a 
different issue:
~]$ sudo port uninstall grace
Password:
---  The following versions of grace are currently installed:
---  grace @5.1.23_1
---  grace @5.1.23_2
---  grace @5.1.23_3
---  grace @5.1.25_0 (active)
Error: port uninstall failed: Registry error: Please specify the full version 
as recorded in the port registry.

So, there were 4 (!) versions of grace installed! That should be remnants of 
old MacPorts installations. I suppose similar multiple versions must be present 
for a number of different ports.

My question is: is there a way to hunt and remove those older versions of 
ports? (preferably, some automatic way to remove them all, from all programs?)

Thanks,
Gustavo Seabra



___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: Cleaning MacPorts from old (unused) ports versions

2015-05-27 Thread Mojca Miklavec
On Thu, May 28, 2015 at 4:20 AM, Brandon Allbery wrote:
 On Wed, May 27, 2015 at 10:10 PM, Gustavo Seabra wrote:

 So, there were 4 (!) versions of grace installed! That should be remnants
 of old MacPorts installations. I suppose similar multiple versions must be
 present for a number of different ports.

 My question is: is there a way to hunt and remove those older versions of
 ports? (preferably, some automatic way to remove them all, from all
 programs?)


 Those are preserved old versions, from `port upgrade` --- so, if something
 is broken for you in the new version, you can easily roll back.

 `sudo port uninstall inactive` will clear them. If you decide you don't want
 to keep them at all, use `sudo port -u upgrade outdated`.

This is true, but I agree that it would be great to have something like
 sudo port uninstall --all grace

Otherwise one has to manually copy and paste every single version (if
one wants to keep older versions for other ports except with the
interactive version of the port command).

Mojca
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: Cleaning MacPorts from old (unused) ports versions

2015-05-27 Thread Brandon Allbery
On Wed, May 27, 2015 at 10:10 PM, Gustavo Seabra gustavo.sea...@gmail.com
wrote:

 So, there were 4 (!) versions of grace installed! That should be remnants
 of old MacPorts installations. I suppose similar multiple versions must be
 present for a number of different ports.

 My question is: is there a way to hunt and remove those older versions of
 ports? (preferably, some automatic way to remove them all, from all
 programs?)


Those are preserved old versions, from `port upgrade` --- so, if something
is broken for you in the new version, you can easily roll back.

`sudo port uninstall inactive` will clear them. If you decide you don't
want to keep them at all, use `sudo port -u upgrade outdated`.

I generally let them pile up over 3-4 upgrades and then remove all at once
before selfupdate.

-- 
brandon s allbery kf8nh   sine nomine associates
allber...@gmail.com  ballb...@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonadhttp://sinenomine.net
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: Cleaning MacPorts from old (unused) ports versions

2015-05-27 Thread Gustavo Seabra
Em 27/05/2015, à(s) 23:20, Brandon Allbery allber...@gmail.com escreveu:
 
 On Wed, May 27, 2015 at 10:10 PM, Gustavo Seabra gustavo.sea...@gmail.com 
 wrote:
 So, there were 4 (!) versions of grace installed! That should be remnants of 
 old MacPorts installations. I suppose similar multiple versions must be 
 present for a number of different ports.
 
 My question is: is there a way to hunt and remove those older versions of 
 ports? (preferably, some automatic way to remove them all, from all programs?)
 
 Those are preserved old versions, from `port upgrade` --- so, if something is 
 broken for you in the new version, you can easily roll back.
 
 `sudo port uninstall inactive` will clear them. If you decide you don't want 
 to keep them at all, use `sudo port -u upgrade outdated`.
 
 I generally let them pile up over 3-4 upgrades and then remove all at once 
 before self update.

Thanks!
Gustavo.

___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users