LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 06-12-2010, 03:48 PM   #1
skoinga
Member
 
Registered: May 2010
Posts: 87

Rep: Reputation: 0
/var/db/pkg and /var/db/ports


Hi,

I've just installed FreeBSD 8 release.
I've installed, in this order,

links
xfce4
xorg

all via the "ports" system (make install clean...)

Now, in the /var/db/pkg I see 324 directory, listing several programs (I know: there are dependencies), while in /var/db/ports I see:

Quote:
# ls
ImageMagick gconf2 libiconv pixman xfce4-utils
Terminal ghostscript8 librsvg2 python26 xfce4-wm
Thunar glib20 libxfce4gui vte xorg-apps
cairo gtk-engines2 libxslt xf86-video-radeonhd xorg-drivers
cups hal libxul xfce4 xorg-server
docbook jasper lynx xfce4-conf
docbook-500 lcms m4 xfce4-desktop
docbook-xsl libexo orage xfce4-panel
gamin libglade2 perl xfce4-print
So, what's the meaning of directory /var/db/pkg and /var/db/ports ?
Why I don't see file only in /var/db/ports? I never installed any programs via the "package" system (pkg_add -r something)

Thankyou very much
 
Old 06-12-2010, 06:24 PM   #2
adamk75
Senior Member
 
Registered: May 2006
Posts: 3,091

Rep: Reputation: 399Reputation: 399Reputation: 399Reputation: 399
FYI, there is a forum specific to FreeBSD ( http://forums.freebsd.org/ )that gets a whole lot more traffic that the FreeBSD section of this forum. However, I think I can answer your question...

/var/db/pkg/ is a directory structure that contains information on each piece of software that you install via ports or packages. It contains a list of the contents of the software, a description, as well as any dependencies (and possibly other information, too).

/var/db/ports/ is a directory structure that contains the configuration options you selected for each piece of software you installed via ports that lets you select options. Not all software in ports gives you a menu to select options from and you can also set BATCH to true so that the ports tree uses the default options. In that case, there will be no entry in /var/db/ports/. You can always revisit that menu of options by changing to the port directory for the software in question and running 'make config'
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
/var/log/wtmp vs. /var/run/utmp masenko703 Linux - Newbie 4 10-05-2012 03:41 AM
Is there a way to rebuild /var/pkg/* directories? crisostomo_enrico Solaris / OpenSolaris 3 08-04-2008 08:28 AM
Can Samhain log my entries in /var/log/secure and /var/log/mesage to a central server abefroman Linux - Software 2 04-13-2008 04:13 PM
pam does not like my owner, group and date for /var/ftp. especially /var manis2008 Linux - Software 1 02-08-2008 07:36 AM
Moving /var/adm and /var/lib - why does it hurt? J_Szucs Linux - General 1 09-15-2004 06:46 PM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 06:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration