Re: functionality opposite to --excludepath
On Jan 21, 2014, at 2:21 AM, Rajul Bhavsar rajulbhav...@gmail.com wrote: Hi, Does rpm5 provides selective installation of files that begins with a certain path? e.g. I want to install files beginning with /usr/lib. I am not able to find option for this functionality. RPM doesn’t provide —include path because the goal is to manage packages, not files. Easiest way to extract some files is likely to use cpio(1) options. E.g. rpm2cpio somepackage.rpm | cpio -dim will extract all files. hth 73 de Jeff I am aware of --excludepath but the list can become huge in future. Thanks, Rajul __ RPM Package Managerhttp://rpm5.org User Communication List rpm-users@rpm5.org
Re: functionality opposite to --excludepath
On Tue, Jan 21, 2014 at 10:10 PM, Jeffrey Johnson n3...@me.com wrote: On Jan 21, 2014, at 2:21 AM, Rajul Bhavsar rajulbhav...@gmail.com wrote: Hi, Does rpm5 provides selective installation of files that begins with a certain path? e.g. I want to install files beginning with /usr/lib. I am not able to find option for this functionality. RPM doesn’t provide —include path because the goal is to manage packages, not files. But, isn't --excludepath handles files? Also, after finding --excludepath only, I looked for --includepath. Easiest way to extract some files is likely to use cpio(1) options. E.g. rpm2cpio somepackage.rpm | cpio -dim will extract all files. Is this extraction can be specified as part of rpm installation? If it is not then it will be of less use for current functionality we are looking for, as we want to query rpmdb for various information about installed packages. hth 73 de Jeff I am aware of --excludepath but the list can become huge in future. Thanks, Rajul __ RPM Package Managerhttp://rpm5.org User Communication List rpm-users@rpm5.org
Re: functionality opposite to --excludepath
On Jan 21, 2014, at 9:42 PM, Rajul Bhavsar rajulbhav...@gmail.com wrote: Easiest way to extract some files is likely to use cpio(1) options. E.g. rpm2cpio somepackage.rpm | cpio -dim will extract all files. Is this extraction can be specified as part of rpm installation? If it is not then it will be of less use for current functionality we are looking for, as we want to query rpmdb for various information about installed packages. RPM is a package, not a file, manager. The idea of “partial packages” using either —exclude or—include based on prefixes (or *RE patterns) leads to complexities such as Should the “partial package” specification be persistent? Instead of asking for file management, split the files into sub-packages, and install compete sub-packages instead of asking for “partial package” management. Sure I understand your need. Do you understand the difference between package and file management? 73 de Jeff