NEW VPS Plans

ServerTune provides -- managed and un-managed -- VPS hosting solutions at affordable prices to accommodate your personal and/or businesses needs.

Click here for more info ...

NEW VPS Plans

Click to hideClick to view
ServerTune

Browse by category

Search    |    Advanced search

HowTo :: portupgrade

Portupgrade (aka pkgtools) is a tool set for working with ports and packages.

pkgtools consist of the utils:

Tips and hints for using

  1. Look at pkgtools.conf. You'll find many interesting examples there.
  2. portupgrade can stop/start/restart services when you like. Add these lines in pkgtools.conf and you'll always have service started after an upgrade process:
      AFTERINSTALL = {
        '*' => proc { |origin|
          cmd_start_rc(origin)
        },
      }
  3. You can fetch INDEX and rebuild portsdb with one command:
    portsdb -Fu
  4. Use portinstall(1) and pkg_deinstall(1) as an alternative to pkg_add(1) and pkg_delete(1).
  5. You can see a port history in your browser with portcvsweb(1) easily.
  6. portsclean -D will purge old distfiles. portsclean -C will clean all 'work' directories. portsclean -L will clean up unused libraries in /usr/local/lib/compat/pkg. portsclean -P will clean up outdated packages.

For more information about Portupgrade, click here and read FreeBSD Handbook -- chapter 4.5 "Using the Ports Collection."

Printer Friendly
 
email to a friend
Email to friend
 
Add comment
Add comment
 
Views: 1533
 
Votes: 0
 
Comments: 0
 
Posted: 28 Nov, 2007 by: Customer Service S.
Updated: 06 Mar, 2011 by: Customer Service S.

Other articles in this Category

Article
Article
Article
RSS