rpm2cpio(1) User Commands rpm2cpio(1)NAME
rpm2cpio - convert Red Hat Package (RPM) to cpio archive
SYNOPSIS
rpm2cpio [file.rpm]
DESCRIPTION
The rpm2cpio utility converts the .rpm file specified as its sole argument to a cpio archive on standard output. (See NOTES.) If no argu-
ment is given, an rpm stream is read from standard input. In both cases, rpm2cpio will fail and print a usage message if the standard out-
put is a terminal. Therefore, the output is usually redirected to a file or piped through the cpio(1) utility.
EXAMPLES
Example 1: Converting an rpm file
example% rpm2cpio Device3Dfx-1.1-2.src.rpm | cpio -itv
CPIO archive found!
-rw-r--r-- 1 root root 2635 Sep 13 16:39 1998, 3dfx.gif
-rw-r--r-- 1 root root 11339 Sep 27 16:03 1998, Dev3Dfx.tar.gz
-rw-r--r-- 1 root root 1387 Sep 27 16:04 1998, Device3Dfx-1.1-2.spec
31 blocks
Example 2: Converting from standard input
example% rpm2cpio < Device3Dfx-1.1-2.src.rpm | cpio -itv
CPIO archive found!
-rw-r--r-- 1 root root 2635 Sep 13 16:39 1998, 3dfx.gif
-rw-r--r-- 1 root root 11339 Sep 27 16:03 1998, Dev3Dfx.tar.gz
-rw-r--r-- 1 root root 1387 Sep 27 16:04 1998, Device3Dfx-1.1-2.spec
31 blocks
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWrpm |
+-----------------------------+-----------------------------+
SEE ALSO cpio(1), attributes(5)NOTES
rpm2cpio handles versions 3 and 4 RPMs.
SunOS 5.10 20 Aug 2001 rpm2cpio(1)
Check Out this Related Man Page
rpm2cpio(1) User Commands rpm2cpio(1)NAME
rpm2cpio - convert Red Hat Package (RPM) to cpio archive
SYNOPSIS
rpm2cpio [file.rpm]
DESCRIPTION
The rpm2cpio utility converts the .rpm file specified as its sole argument to a cpio archive on standard output. (See NOTES.) If no argu-
ment is given, an rpm stream is read from standard input. In both cases, rpm2cpio will fail and print a usage message if the standard out-
put is a terminal. Therefore, the output is usually redirected to a file or piped through the cpio(1) utility.
EXAMPLES
Example 1: Converting an rpm file
example% rpm2cpio Device3Dfx-1.1-2.src.rpm | cpio -itv
CPIO archive found!
-rw-r--r-- 1 root root 2635 Sep 13 16:39 1998, 3dfx.gif
-rw-r--r-- 1 root root 11339 Sep 27 16:03 1998, Dev3Dfx.tar.gz
-rw-r--r-- 1 root root 1387 Sep 27 16:04 1998, Device3Dfx-1.1-2.spec
31 blocks
Example 2: Converting from standard input
example% rpm2cpio < Device3Dfx-1.1-2.src.rpm | cpio -itv
CPIO archive found!
-rw-r--r-- 1 root root 2635 Sep 13 16:39 1998, 3dfx.gif
-rw-r--r-- 1 root root 11339 Sep 27 16:03 1998, Dev3Dfx.tar.gz
-rw-r--r-- 1 root root 1387 Sep 27 16:04 1998, Device3Dfx-1.1-2.spec
31 blocks
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWrpm |
+-----------------------------+-----------------------------+
SEE ALSO cpio(1), attributes(5)NOTES
rpm2cpio handles versions 3 and 4 RPMs.
SunOS 5.10 20 Aug 2001 rpm2cpio(1)
I am running a Linux Red Hat 7.2 system and I can't log into the root account.
When I tried to su to root from another user by using the command su - root, I get this error message:
su: basename.c:67: base_name:Assertion `all-slashes || !((*(p - 1)) == '/ ' ) failed
also, when I tried to... (10 Replies)
Hi all,
I compile my c program and get following result
hrnpfc01.c:1387: stray '\' in program
hrnpfc01.c:1387: parse error before `,'
hrnpfc01.c:1388: stray '\' in program
hrnpfc01.c:1388: parse error before `,'
hrnpfc01.c:1396: stray '\' in program
hrnpfc01.c:1396: parse error before... (4 Replies)
Hiyas. Last night I was testing one of our shell script (not made by me) that is having some problems. What it does is that it backups some oracle data to tape and it is failing. I put the commands manually that it uses inside it to make the backup, in order to debug where it was failing. I ran the... (6 Replies)
Any idea how to get around this limit? I have a 42GB database backup file (.dmp) taking up disk space because neither tar nor cpio are able to put it onto a tape. I am on a SUN Solaris using SunOS 5.8. I would appreciate whatever help can be provided. Thanks! (9 Replies)
Hello All,
when I install rpm
rpm --install rpm packagename
I got the following errors
stty:standard input:invalid argument
stty:standard input:invalid argument
I dont know what i have to do exactly.
I search on google for the same but not a particular standard solution is given... (17 Replies)
Hey all my co-workers and I are trying to put together a list of things root "Can't" do on any *NIX OS, so I wanted to come here and see what all we could come up with.
Here are two to start this off:
write to a read only mount FS
kill a tape rewind
Please add what you know.
Thanks,... (5 Replies)
I'm having problems getting backups working on SCO OpenServer 5.7.
using the following command:
find / -depth -print | cpio -ocvB -O /dev/rct0
some files are backed up then the following error is reported:
Reached end of medium on output.
Device /dev/rct0: Change to part 2 and... (6 Replies)
Hi,
I am facing one interesting problem :
I have a file which contains data like this
459,|1998-11-047|a |b |c \n efg | d|e | \n
459,|1998-11-047|a \n c|b |c \n efg | d|e | \n
Basically what I have to do is , I have to remove all \n which is coming ( enclosed ) in between... (7 Replies)
Hi,
under unix aix , i had to put a catostrophic patch from an editor ...
i had first made a cpio backup
connected root
cd /application
find . –print | cpio –ocvBm > /sauvegarde/sauvegarde.cpio
Does someone know the command to restore my cpio backup ?
thanks in advandce to everyone
... (7 Replies)
In Linux for .rpm
we can list or view the files using the command
rpm -qpl <file.rpm>
and to extract, the command is
rpm2cpio <file.rpm> | cpio -idvh
I would like to know the commands which has same functionality as above for solaris ( .pkg)
Thanks in Advance (5 Replies)
Hi guys,
I have a file with the following line as data:
Does anyone know of a way to assign each number to an array in perl , so
each array element would hold single number?
I have tried to use "while loop" with a "push", but it puts all line in the first element :(
Thanks a lot for... (6 Replies)
So I ran into a strange problem the other day when using cpio. I'm not really sure this needed to be in an HPUX specific forum, but wasn't sure where else to put it. I'm running HPUX 11.11 PARISC.
I was using cpio to copy a directory and its entire contents from one server, we'll call it... (7 Replies)
Hi,
On my Linux system - when I do
ls *tar*
-rw-r--r-- 1 root root 245233115 Sep 4 10:42 starrcxt_2011.12-sp3.tar.bz
I can see the files. But I can't find where it is.
I also did locate starrcxt_2011.12-sp3.tar.bz
I can't find the files. (4 Replies)
Please note that using the command cpio to back up to tape was successful. Used the below command:
time find /accts -print | cpio -oa --block-size=512 --format=newc --verbose -O /dev/nst0
I'm trying to restore from tape of a particular file and having issues. Below is the command to restore... (7 Replies)