Re: Finding ports by install date?

2016-05-30 Thread Harald Hanche-Olsen
-Original Message-
From: Carlo Tambuatco 
Date: 30 May 2016 at 23:26:04

> Dude, thanks!

You’re welcome.

> Yeah the port -v installed does not list the dates for 2.3.4…wonder if 
> previous versions  
> ever did…

Probably not. Ryan mentioned trunk, which indicates a future, not yet released 
version.

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


Re: Finding ports by install date?

2016-05-30 Thread Carlo Tambuatco
Dude, thanks! 

Yeah the port -v installed does not list the dates for 2.3.4…wonder if previous 
versions ever did...


> On May 30, 2016, at 4:21 PM, Harald Hanche-Olsen  wrote:
> 
>> Is there a way to search for ports installed on a given date? I want to find 
>> ports I installed 
>> on a specific date and uninstall them. 
> 
> Absent a built-in method, the following seems to work correctly: 
> 
> sqlite3 /opt/local/var/macports/registry/registry.db "select name from ports 
> where date(date,'unixepoch')=='2016-05-27’" 
> 
> It’s a bit jarring that “date” names both a function and a database field, 
> but sqlite is not confused by this, thank goodness. 
> 
> – Harald 
> 

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


Re: Finding ports by install date?

2016-05-30 Thread Harald Hanche-Olsen
> Is there a way to search for ports installed on a given date? I want to find 
> ports I installed 
> on a specific date and uninstall them. 

Absent a built-in method, the following seems to work correctly: 

sqlite3 /opt/local/var/macports/registry/registry.db "select name from ports 
where date(date,'unixepoch')=='2016-05-27’" 

It’s a bit jarring that “date” names both a function and a database field, but 
sqlite is not confused by this, thank goodness. 

– Harald 

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


Re: Finding ports by install date?

2016-05-30 Thread Harald Hanche-Olsen
-Original Message-
From: Ryan Schmidt 
Date: 30 May 2016 at 20:41:22
To: Carlo Tambuatco 
Cc: MacPorts Users 
Subject:  Re: Finding ports by install date?

> Not built in, but you can print the install date with:
>  
> port -v installed
> […]
>  
> (I'm not certain whether this feature is in MacPorts 2.3.4 or if you need to 
> be running  
> MacPorts trunk to get it.)

Not in 2.3.4.

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


Re: Finding ports by install date?

2016-05-30 Thread Ryan Schmidt

On May 30, 2016, at 5:20 AM, Carlo Tambuatco wrote:

> Is there a way to search for ports installed on a given date? I want to find 
> ports I installed on a specific date and uninstall them.

Not built in, but you can print the install date with:

port -v installed

and pipe that through grep to find dates you're interested in. For example on 
my system:

port -v installed | grep 2016-04-12
  pango @1.40.1_0+quartz+universal+x11 platform='darwin 15' archs='i386 x86_64' 
date='2016-04-12 13:53:55'
  pango-devel @1.40.1_0+quartz+universal+x11 (active) platform='darwin 15' 
archs='i386 x86_64' date='2016-04-12 13:55:34'
  zlib @1.2.8_1+universal (active) platform='darwin 15' archs='i386 x86_64' 
date='2016-04-12 13:52:04'


(I'm not certain whether this feature is in MacPorts 2.3.4 or if you need to be 
running MacPorts trunk to get it.)

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


Finding ports by install date?

2016-05-30 Thread Carlo Tambuatco
Is there a way to search for ports installed on a given date? I want to find 
ports I installed on a specific date and uninstall them.
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users