geekvenue.net

Welcome to Chucktips Hardware HELP WITH DEAD OS Installing FreeBSD Miscellaneous
 faq
 search
 add article
 cool-stuff
 how-to
 main
 tips


TIP: You can now upgrade apps
Ports and Packages Posted by Jason on Friday April 20, @09:33PM
from the Do-It-In-Style dept.
A new port has been added to the ports tree and it allows you to upgrade an installed application from the ports tree. I tried it on a couple of my installed applications and it worked well. The utility is called portupgrade and it can be found in /usr/ports/sysutils/portupgrade.

I have heard that portupgrade will be included in FreeBSD-4.3-RELEASE. Until then, you will have to update your ports tree before you can install this utility.

The first time I tried to use portupgrade I received an error, so I thought I should read the man page but there was none. Next, I typed portupgrade, hit the enter key and a help screen was displayed. So I tried the utility again using the -o switch.

Here is the command I used to upgrade my bash shell from bash-2.04 to the current port of bash-2.05.

portupgrade -o /usr/ports/shells/bash2 bash

This command sequence downloaded bash-2.05, compiled it, installed it and removed my older version (bash-2.04).

I noticed that portupgrade did not clean up after itself, so I changed to the /usr/ports/shells/bash2 directory and issued a make clean command to cleanup the bash work directory after the install.

Note:
If you use portupgrade to upgrade a server daemon such as apache, you may want to stop that service prior to performing the upgrade.

<  |  >

 

Related Links
  • Articles on Ports and Packages
  • Also by Jason
  • Contact author

    Lilliput Mini USB Computer Monitor

    If you have ever wanted to learn about Cisco Routers, check out my new book "Cisco Routers for the Small Business" - it's Cisco CLI for the Regular Guy!

  • Sponsors

    The Fine Print: The following comments are owned by whoever posted them.
    ( Add a Reply )

    Re: TIP: You can now upgrade apps
    by Jason on Wednesday April 25, @04:09PM
    I have checked out 4.3-RELEASE and it does not appear to have the portupgrade utility installed by default, instead it has a new pkg_upgrade utility.

    I believe this would require a package.tar.gz file. As apposed to grabbing source code via the ports tree like portupgrade does.
    [ Add a Reply to this ]
    Re: TIP: You can now upgrade apps
    by You4eea on Saturday July 06, @03:32PM
    I am running FreeBSD4.5 so should I use "portupgrade" or the "pkg_upgade" util. for updateing stuff that Ihave install vai the ports tree?

    With best personal regards,
    I am
    Very truly yours,

    You4eea
    [ Add a Reply to this ]
    • Re: TIP: You can now upgrade apps
      by Understudy on Saturday June 04, @10:56AM
      portupgrade -arR
      please read /usr/ports/UPDATING for any specfic notes on things that may affect you.
      [ Reply to this ]

     
    The Fine Print: The following comments are owned by whoever posted them.
    ( Article Reply )

    "You never know how many friends you have until you own a Condo on the beach." -- Jason's Postulate

    Powered by Zope  Powered by Apache  Squishdot Powered
    All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest ©2001 Jason Neumann.
    [ main | post article | search ]