Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Jun 2000 23:44:27 +0300
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        Rahul Siddharthan <rsidd@physics.iisc.ernet.in>
Cc:        Tyler Spivey <tyler@wapvi.bc.ca>, freebsd-questions@FreeBSD.ORG
Subject:   Re: packages
Message-ID:  <20000613234426.A1119@hades.hell.gr>
In-Reply-To: <20000612025259.B22528@physics.iisc.ernet.in>; from rsidd@physics.iisc.ernet.in on Mon, Jun 12, 2000 at 02:52:59AM %2B0530
References:  <200006112112.OAA26395@viper.wapvi.bc.ca> <20000612025259.B22528@physics.iisc.ernet.in>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jun 12, 2000 at 02:52:59AM +0530, Rahul Siddharthan wrote:
> 
> Tyler Spivey said on Jun 11, 2000 at 14:12:36:
> > whats the equiv of:
> > dpkg -L packagename
> > it lists the files in that package?
>
> pkg_info -L
> man pkg_info

You can alternatively look in /var/db/pkg/PACKAGE-VERSION/+CONTENTS, to
see which files are installed by each package.  For instance, on my /var
I can see:

	% cd /var/db/pkg
	% ls -ld par*
	drwxr-xr-x  2 root  wheel  512 Jun 11 05:13 par-1.50/
	% more par-1.50/+CONTENTS
	@name par-1.50
	@cwd /usr/local
	man/man1/par.1.gz
	@comment MD5:8cb79b0243be3336344a1ab2308767ba
	bin/par
	@comment MD5:986f197bcf2f2c5ec685bbcfe57f7075

Which means that /usr/local/bin/par and /usr/local/man/man1/par.1.gz are
the files that were installed by the package.

Of course, that is exactly what pkg_info does for you.  I only wanted to
note that all the information you're looking for is already in /var/db
for you to browse with your normal shell utilities.

-- 
Giorgos Keramidas, < keramida @ ceid . upatras . gr >
For my public key: finger keramida@ceid.upatras.gr


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000613234426.A1119>