Sponsored Content
Operating Systems Linux Slackware Looking for a file within a given slackware distribution. Post 302757871 by jim mcnamara on Friday 18th of January 2013 06:21:29 AM
Old 01-18-2013
A lot of the distribution files for linux are in the form of either somefile.tgz (sometimes somefile.tar.gz) or somefile.tar.bz2

These are compressed archives that cannot read directly.
mount your cd
for tgz and tar.gz files

Code:
cd /path/to/cdrom 
find . -name '*.tgz'  -exec tar tfz {} \; | grep foo
find . -name '*.tar.gz' - exec gzcat {} \; | tar tf - | grep foo

for bz2 files, ( .tbz, tar.bz2 etc. ) use

Code:
cd /path/to/cdrom
find . -name '*.bz2' -exec bzcat {} \;  | tar tf | grep foo

 

2 More Discussions You Might Find Interesting

1. Slackware

Slackware

I want to know more about the Concurrency(Process Synchronization, Deadlocks) of a slackware, i know already the Concurrency but i want to know further what else is the Concurrency(Process Synchronization, Deadlocks) of a slackware. :cool: (1 Reply)
Discussion started by: green12
1 Replies

2. Slackware

Slackware 13.

Hello everyone. I am a newbie in operating systems. so far I've been playing with Ubuntu and I like it a lot. I heard about Slackware and I wanna try it. Last night I download the iso but It didn't fit in my usb or Dvd. it is a 4.2 GB. Is there one less than 4.2GB that will fit in my usb or DVD? ... (1 Reply)
Discussion started by: openation1
1 Replies
DSCEXTRACT(1)                                                 General Commands Manual                                                DSCEXTRACT(1)

NAME
dscextract - extract a single file from a Debian source package SYNOPSIS
dscextract [options] dscfile file DESCRIPTION
dscextract reads a single file from a Debian source package. The idea is to only look into .diff.gz files (source format 1.0) or .debian.tar.gz/bz2 files (source format 3.0) where possible, hence avoiding to unpack large tarballs. It is most useful for files in the debian/ subdirectory. file is relative to the first level directory contained in the package, i.e. with the first component stripped. OPTIONS
-f "Fast" mode. For source format 1.0, avoid to fall back scanning the .orig.tar.gz file if file was not found in the .diff.gz. (For 3.0 packages, it is assumed that debian/* are exactly the contents of debian.tar.gz/bz2.) EXIT STATUS
0 file was extracted. 1 file was not found in the source package. 2 An error occurred, like dscfile was not found. EXAMPLE
dscextract dds_2.1.1+ddd105-2.dsc debian/watch || test $? = 1 AUTHOR
dscextract was written by Christoph Berg <myon@debian.org>. DEBIAN Debian Utilities DSCEXTRACT(1)
All times are GMT -4. The time now is 04:19 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy