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.11 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)
Hello,
I have been trying all sorts of combinations and been royally screwing up my filesystem in the process :rolleyes: I have a bunch of .wav files in a hierarchical album/artist etc folder structure and each has a duplicate .w4a file next to it.
All I want to do is move all the .w4a... (7 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)
I have sco unix 5.0
Kindly i want to restore data from cd ; I am putting this command and recieving :
find . -print | cpio -icduvB</dev/cd0
cpio: this is not a cpio file, bad header
kindly help (8 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)
The same cpio script has been working for years without modifications, until the last couple of nights when we get the error
Segmentation Fault - core dumped and the cpio aborts. It appears to abort in relatively the same place every time and on multiple tapes.
Do I have a bad tape drive,... (8 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)
Hi,
FYI I've this AIX6.1 machine that I'm telnet to using Putty. I have this oracle client file which is 1G+ that took me several hours to transfer.
I was trying to unzip 10gr2_aix5l64_client.cpio.gz.
# gunzip 10gr2_aix5l64_client.cpio.gz /usr/app/oracle
gunzip: /usr/app/oracle is a... (6 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)
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)