How do I tell what variants I used to install a port?
Hi some days are better than others. Some time ago I did a port install php5 {some set of variants here} Today I do port selfupdate port list outdated and learn that my php5 is outdated. OK. Not sure why since port list installed shows php5 @5.2.4 www/php5 and the outdated list indicates the same version number. If I do port upgrade php5 I get a number of ports installed/upgraded (e.g. libxslt). I *assume* that the upgrade will install the latest version of php5 just like I did it before, with all of the variants the same. I sure wish I could remember what those variants were, just in case I wanted to do a port install php5 {variants} on a different system, or to add a note to my black book. 8) ---------------------------------- Chris Janton - face at CentosPrime dot COM Netminder for Opus1.COM
On 04 Sep, 2007, at 13:03, Chris Janton wrote:
Today I do port selfupdate port list outdated and learn that my php5 is outdated. OK. Not sure why since port list installed shows php5 @5.2.4 www/php5 and the outdated list indicates the same version number.
`port list ...` is a bit quirky. If you check the documentation, you'll see that it says "lists the most recent version of each given port". What you expected was the output of the more intuitive command `port installed`, which would have shown you both the actual version of your installed PHP, and its variants. If the outdated version number was also 5.2.4, it's possible that the port's maintainer made some improvements to the port and incremented its revision (a secondary number checked after the version to see if a port is outdated). Chris
Citando Chris Janton :
Hi
some days are better than others.
Some time ago I did a
port install php5 {some set of variants here}
Today I do
port selfupdate port list outdated
The list command is used to display the list of ports available and their versions. port list outdated lists the portfile version of the outdated ports. You should use 'port outdated'.
and learn that my php5 is outdated. OK. Not sure why since
port list installed
shows
php5 @5.2.4 www/php5
and the outdated list indicates the same version number.
You should use 'port installed php5' to get the info. It will also tell you which variants you slected.
If I do
port upgrade php5
I get a number of ports installed/upgraded (e.g. libxslt).
I *assume* that the upgrade will install the latest version of php5 just like I did it before, with all of the variants the same.
Yes, the variants you selected get preserved by upgrades (as long as they still exist, and unless some bugs...)
I sure wish I could remember what those variants were, just in case I wanted to do a
port install php5 {variants}
on a different system, or to add a note to my black book.
Just remember that list is generally not interesting. The different commands you should remember are install, uninstall, upgrade, outdated, installed, variants, and info. Emmanuel
participants (3)
-
Chris Janton
-
Chris Pickel
-
Emmanuel Hainry