directory tree and .deb's

1998-05-29 Thread G. Kaplan
Can I determine the destination directory of a package from the Packages
file. My objective is to calculate the disk storage requirement for all
(or a preselected subset of)  packages by destination directory. Where
can I find this information without actually installing the package.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


Re: directory tree and .deb's

1998-05-29 Thread Bob Hilliard
G. Kaplan <[EMAIL PROTECTED]> writes:
 
> Can I determine the destination directory of a package from the Packages
> file. My objective is to calculate the disk storage requirement for all
> (or a preselected subset of)  packages by destination directory. Where
> can I find this information without actually installing the package.

Hi,
 You can not get this information directly from the Packages
file.  You can look at the .deb file with zless and find a listing
similar to an ls -l listing of all files and directories the packages
installs.  Calculating the disk storage requirement for a set of
packages by this method would be quite tedious.

Bob
-- 
   _
  |_)  _  |_   Robert D. Hilliard<[EMAIL PROTECTED]>
  |_) (_) |_)  Palm City, FL  USAPGP Key ID: A8E40EB9


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


Re: directory tree and .deb's

1998-05-31 Thread Jack Kern
On Fri, May 29, 1998 at 11:53:00AM -0400, G. Kaplan wrote:
> Can I determine the destination directory of a package from the Packages
> file. My objective is to calculate the disk storage requirement for all
> (or a preselected subset of)  packages by destination directory. Where
> can I find this information without actually installing the package.

By "Packages file" do you mean, e.g.,
"/var/lib/dpkg/methods/ftp/Packages.dists_frozen_main"?  If so, I don't
believe the desired information is there.

If you mean an individual package file, e.g., xyz-0.13.deb, then "dpkg -c
xyz-0.13.deb" displays an "ls -l" of the archive therein.  One doesn't
have to install the package to see this.

-- 
  [EMAIL PROTECTED]   Jack Kern   Yarmouth, Nova Scotia   Debian GNU/Linux 2.0


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


Re: directory tree and .deb's

1998-06-08 Thread D. W. Wieboldt
G. Kaplan <[EMAIL PROTECTED]> writes:
 
> Can I determine the destination directory of a package from the Packages
> file. My objective is to calculate the disk storage requirement for all
> (or a preselected subset of)  packages by destination directory. Where
> can I find this information without actually installing the package.

Hi,
 You can not get this information directly from the Packages
file.  You can look at the .deb file with zless and find a listing
similar to an ls -l listing of all files and directories the packages
installs.  Calculating the disk storage requirement for a set of
packages by this method would be quite tedious.

Bob
-- 

Sounds like a job for awk!  Of course dpkg -I will frequently give you an
"installed size" number.  But you can run your own count with something
like this script that I call pkgsz

#!/bin/sh
#Example dpkg -c with awk to count bytes of files in package.

dpkg -c $1 | awk '{ x += $3 } END { print "total bytes: " x }'

Granted this only counts the contents of the package name passed to it.
Perhaps someone might expand on this with a do loop [sorry, "for" loop] to
sum up a bunch of installed sizes.

-- 
[EMAIL PROTECTED] . . . . . . .  My other computer runs Linux!

If A = B and B = C, then A = C, except where void or prohibited by law.
-- Roy Santoro


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]