Linux, FreeBSD, Juniper, Cisco / Network security articles and troubleshooting guides

FAQ
It is currently Fri Dec 01, 2023 2:44 pm


FreeBSD tutorials and how-tos

Author Message
LaR3
  Post  Post subject: FreeBSD portupgrade packages with manual dependencies  |  Posted: Wed Aug 05, 2009 11:07 am

Joined: Mon Aug 03, 2009 4:55 pm
Posts: 19

Offline
 

FreeBSD portupgrade packages with manual dependencies

FreeBSD portupgrade (aka pkgtools) is a tool set for working with ports and packages. It enhances abilities of system tools and adds many new ones. It is highly tunable via its configuration file and allows you to create individual svariable environment for every port you like, to define commands that will be executed before/after port upgrade stages.

pkgtools uses hash databases to keep information about available ports (in the ports tree), installed ports, dependencies, etc. So access to the information is fast. E.g. portversion(1) is much faster than pkg_version(1). (But note: you have to have a fresh INDEX file for relevant results).

If one of your ports uses manual dependencies and you usually rely on portupgrade to maintain your installed ports up to date, then it's a good practice to let it know of these manual dependencies.

Fill ALT_PKGDEP section in pkgtools.conf file for portupgrade to be aware of alternative dependencies you use. Eg:
Code:
ALT_PKGDEP = {
        'www/apache13' => 'www/apache13-modssl',
        'print/ghostscript-gnu' => 'print/ghostscript-gpl',
      }

Note also, portupgrade knows nothing how to handle ports with different suffixes (E.g. -nox11). So you should explicitly define variables (E.g. WITHOUT_X11=yes) for the ports in /etc/make.conf or pkgtools.conf (MAKE_ARGS section) files.

pkgtools.conf file is usually found in /usr/local/etc/pkgtools.conf.

_________________
Humble user
http://www.ivorde.ro





Top
Display posts from previous:  Sort by  
E-mail friendPrint view

Topics related to - "FreeBSD portupgrade packages with manual dependencies"
 Topics   Author   Replies   Views   Last post 
There are no new unread posts for this topic. FreeBSD portupgrade without port vulnerability check

mandrei99

0

2479

Thu Mar 18, 2010 6:12 am

mandrei99 View the latest post

There are no new unread posts for this topic. FreeBSD - Collecting hardware information

LaR3

0

12907

Wed Aug 05, 2009 2:40 pm

LaR3 View the latest post

There are no new unread posts for this topic. FreeBSD - Can't locate Mail/Header.pm in @INC (@INC contains:

mandrei99

0

2926

Thu Jul 29, 2010 3:00 am

mandrei99 View the latest post

There are no new unread posts for this topic. FreeBSD: Apache 2.2.15 (custom location) + mod_fcgid

debuser

0

2120

Thu Jul 22, 2010 1:07 pm

debuser View the latest post

There are no new unread posts for this topic. FreeBSD ifconfig display capability and supported media types for an interface

debuser

0

5325

Thu Jul 08, 2010 6:26 am

debuser View the latest post

There are no new unread posts for this topic. FreeBSD: monitor network interface traffic throughput - exploring systat

admin

0

7530

Mon Feb 02, 2015 7:17 pm

admin View the latest post

There are no new unread posts for this topic. FreeBSD: php 5.3.2 configure error: xml2-config not found. Please check your libxml2 installation.

debuser

0

2551

Thu Jul 22, 2010 1:41 pm

debuser View the latest post

 

Who is online
Users browsing this forum: No registered users and 0 guests
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
Jump to:  
cronNews News Site map Site map SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list


Delete all board cookies | The team | All times are UTC - 5 hours [ DST ]



phpBB SEO