- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- rpm - single file installation from rpm package
Operating System - Linux
1820072
Members
3212
Online
109608
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-23-2004 08:26 PM
тАО11-23-2004 08:26 PM
Hi,
i am searching for a possibility to install just one file out of an rpm-package without having to install all files out of the rpm package, does anybody know how to do this ?
example:
i want to replace my /bin/mount' command on my running system out of the package 'mount-2.11y-31.1.i386.rpm' from the CD without installing all other files from 'mount-2.11y-31.1.i386.rpm'.
thanks for any help.
regards,
Matthias
i am searching for a possibility to install just one file out of an rpm-package without having to install all files out of the rpm package, does anybody know how to do this ?
example:
i want to replace my /bin/mount' command on my running system out of the package 'mount-2.11y-31.1.i386.rpm' from the CD without installing all other files from 'mount-2.11y-31.1.i386.rpm'.
thanks for any help.
regards,
Matthias
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-23-2004 09:40 PM
тАО11-23-2004 09:40 PM
Re: rpm - single file installation from rpm package
Hi
Using rpmget script, you can easily extract a specified file from a rpm.
Regards,
Sergejs
Using rpmget script, you can easily extract a specified file from a rpm.
Regards,
Sergejs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-23-2004 11:02 PM
тАО11-23-2004 11:02 PM
Solution
Hi Matthias
I personally don't have the rpmget script, so I use the following method.
Run this command against the package from which you want to extract the mount command:
rpm2cpio |cpio -i --make
Preferably run this in say your /tmp directory, as the --make command makes all the directories as mentioned by the paths of files within the rpm package.
For instance, mount is located in /bin/mount, so the above command will create a bin directory relative to /tmp, i.e /tmp/bin. Within this directory you'll find the mount command. Either mv or cp it to the original location, as you prefer. Once complete, you can just clean up your /tmp directory again.
This is an option if like me, you don't have rpmget, otherwise that would be a preferable option.
Regards
Paul
I personally don't have the rpmget script, so I use the following method.
Run this command against the package from which you want to extract the mount command:
rpm2cpio
Preferably run this in say your /tmp directory, as the --make command makes all the directories as mentioned by the paths of files within the rpm package.
For instance, mount is located in /bin/mount, so the above command will create a bin directory relative to /tmp, i.e /tmp/bin. Within this directory you'll find the mount command. Either mv or cp it to the original location, as you prefer. Once complete, you can just clean up your /tmp directory again.
This is an option if like me, you don't have rpmget, otherwise that would be a preferable option.
Regards
Paul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-24-2004 03:41 PM
тАО11-24-2004 03:41 PM
Re: rpm - single file installation from rpm package
you could also use mc (midnight commander) to select any number of files inside the rpm and extract them. behind the scene mc will call cpio for you.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP