13
2010
Keeping up with the ports – pkg_version
pkg_version -v will display some information about the version information for both currently installed ports and what you have in your ports source tree
pkg_version -l’flag’ will limit the output to certain flags, ie.
pkg_version -l ‘<’ will display all ports that are not up to date
pkg_version -l’=’ will display all up to date ports
pkg_version -c will display the required commands to upgrade all installed ports to the current version. (see below for a note on the -c option).
Putting these together you can run pkg_version -vl’<’ to check your version numbers against what’s in the ports tree to see what needs to be upgraded and pkg_version -cv’<’ to display the commands needed to upgrade your ports. Taking this one step further you could pipe the last command to a shell interpreter to do it for you. pkg_version -cv’<’ | sh does just that. N
Leave a comment
Kategorije
- Ostalo (161)
- Računalništvo (266)
- Centos (34)
- CSS (2)
- FreeBSD (37)
- jQuery (1)
- MySQL (8)
- Na spletu dogaja … (124)
- Netbeans (4)
- PHP (20)
- Symbian (3)
- Ubuntu (32)
- Windows (5)
- Zend Framework (6)
- Zend Studio (1)
Blogroll
Arhiv
- February 2011 (5)
- December 2010 (4)
- November 2010 (2)
- October 2010 (5)
- September 2010 (6)
- August 2010 (5)
- July 2010 (10)
- June 2010 (9)
- May 2010 (10)
- April 2010 (8)
- March 2010 (12)
- February 2010 (19)
- January 2010 (20)
- December 2009 (10)
- November 2009 (1)
- October 2009 (3)
- September 2009 (2)
- August 2009 (9)
- June 2009 (11)
- May 2009 (5)
- April 2009 (6)
- March 2009 (9)
- February 2009 (15)
- January 2009 (10)
- December 2008 (17)
- November 2008 (20)
- October 2008 (16)
- September 2008 (48)
- August 2008 (56)
- July 2008 (35)
- June 2008 (35)
An article by




