I want to get the original version of /etc/clamd.d/amavis.conf from the amavisd-new rpm to get the defaults to submit a bug report. I could not figure out how to do this, so I did a reinstall, but it did not replace this file (whatprovides says it comes from this rpm).
Is there a way to extract just the one file, and better yet, place it elsewhere than its regular destination?
thanks
centos-bounces@centos.org wrote on 31.01.2013 16:55:37:
Robert Moskowitz rgm@htt-consult.com Gesendet von: centos-bounces@centos.org
31.01.2013 16:55
Bitte antworten an CentOS mailing list centos@centos.org
An
CentOS mailing list centos@centos.org
Kopie
Thema
[CentOS] How to extract one file from rpm using yum?
I want to get the original version of /etc/clamd.d/amavis.conf from the amavisd-new rpm to get the defaults to submit a bug report. I could not
figure out how to do this, so I did a reinstall, but it did not replace this file (whatprovides says it comes from this rpm).
Is there a way to extract just the one file, and better yet, place it elsewhere than its regular destination?
thanks
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Hi Robert,
you can extract this file with cpio or open it with mc like a archive (zip, tar, ...)
Mit freundlichen Grüßen Andreas Reschke ________________________________________________________________
Unix/Linux-Administration Andreas.Reschke@behrgroup.com
Robert Moskowitz wrote:
I want to get the original version of /etc/clamd.d/amavis.conf from the amavisd-new rpm to get the defaults to submit a bug report. I could not figure out how to do this, so I did a reinstall, but it did not replace this file (whatprovides says it comes from this rpm).
Is there a way to extract just the one file, and better yet, place it elsewhere than its regular destination?
Didn't it create it in the normal destination as amavis.conf.rpmnew?
mark
On 01/31/2013 11:01 AM, m.roth@5-cent.us wrote:
Robert Moskowitz wrote:
I want to get the original version of /etc/clamd.d/amavis.conf from the amavisd-new rpm to get the defaults to submit a bug report. I could not figure out how to do this, so I did a reinstall, but it did not replace this file (whatprovides says it comes from this rpm).
Is there a way to extract just the one file, and better yet, place it elsewhere than its regular destination?
Didn't it create it in the normal destination as amavis.conf.rpmnew?
No it did not. I am thinking I had the current file open in gedit and MAYBE that had a bearing on the reinstall?
I will attempt to download just the rpm and try to open it with archive manager.
From: Robert Moskowitz rgm@htt-consult.com
I want to get the original version of /etc/clamd.d/amavis.conf from the amavisd-new rpm to get the defaults to submit a bug report. I could not figure out how to do this, so I did a reinstall, but it did not replace this file (whatprovides says it comes from this rpm). Is there a way to extract just the one file, and better yet, place it elsewhere than its regular destination?
You could also just have renamed your conf file temporarily, reinstalled, moved the default conf file and renamed back your conf file...
JD
On 01/31/2013 11:36 AM, John Doe wrote:
From: Robert Moskowitz rgm@htt-consult.com
I want to get the original version of /etc/clamd.d/amavis.conf from the amavisd-new rpm to get the defaults to submit a bug report. I could not figure out how to do this, so I did a reinstall, but it did not replace this file (whatprovides says it comes from this rpm). Is there a way to extract just the one file, and better yet, place it elsewhere than its regular destination?
You could also just have renamed your conf file temporarily, reinstalled, moved the default conf file and renamed back your conf file...
OK. I am set for what I needed. I went to the repo via http and downloaded the rpm. I then used archive manager via nautilus to get to the file(s) I needed. Now to write up the bug report. Minor item, but it bugs me.... ;)
On Thu, 31 Jan 2013, Robert Moskowitz wrote:
On 01/31/2013 11:36 AM, John Doe wrote:
From: Robert Moskowitz rgm@htt-consult.com
I want to get the original version of /etc/clamd.d/amavis.conf from the amavisd-new rpm to get the defaults to submit a bug report. I could not figure out how to do this, so I did a reinstall, but it did not replace this file (whatprovides says it comes from this rpm). Is there a way to extract just the one file, and better yet, place it elsewhere than its regular destination?
You could also just have renamed your conf file temporarily, reinstalled, moved the default conf file and renamed back your conf file...
OK. I am set for what I needed. I went to the repo via http and downloaded the rpm. I then used archive manager via nautilus to get to the file(s) I needed. Now to write up the bug report. Minor item, but it bugs me.... ;)
The command line way of getting 1 file out of a rpm is to rpm2cpio.
rpm2cpio <rpmfilename> > <filename.cpio>
Now you have a cpio archive which you can use to get files out of.
-Connie Sieh
On 01/31/2013 11:05 AM, Connie Sieh wrote:
On Thu, 31 Jan 2013, Robert Moskowitz wrote:
On 01/31/2013 11:36 AM, John Doe wrote:
From: Robert Moskowitz rgm@htt-consult.com
I want to get the original version of /etc/clamd.d/amavis.conf from the amavisd-new rpm to get the defaults to submit a bug report. I could not figure out how to do this, so I did a reinstall, but it did not replace this file (whatprovides says it comes from this rpm). Is there a way to extract just the one file, and better yet, place it elsewhere than its regular destination?
You could also just have renamed your conf file temporarily, reinstalled, moved the default conf file and renamed back your conf file...
OK. I am set for what I needed. I went to the repo via http and downloaded the rpm. I then used archive manager via nautilus to get to the file(s) I needed. Now to write up the bug report. Minor item, but it bugs me.... ;)
The command line way of getting 1 file out of a rpm is to rpm2cpio.
rpm2cpio <rpmfilename> > <filename.cpio>
Now you have a cpio archive which you can use to get files out of.
Or:
rpm2cpio <rpmfilename> | cpio -idv
That will extract all the files to the current directory (create a temporarily directory and cd into it before you start).
On 01/31/2013 12:37 PM, Johnny Hughes wrote:
On 01/31/2013 11:05 AM, Connie Sieh wrote:
On Thu, 31 Jan 2013, Robert Moskowitz wrote:
On 01/31/2013 11:36 AM, John Doe wrote:
From: Robert Moskowitz rgm@htt-consult.com
I want to get the original version of /etc/clamd.d/amavis.conf from the amavisd-new rpm to get the defaults to submit a bug report. I could not figure out how to do this, so I did a reinstall, but it did not replace this file (whatprovides says it comes from this rpm). Is there a way to extract just the one file, and better yet, place it elsewhere than its regular destination?
You could also just have renamed your conf file temporarily, reinstalled, moved the default conf file and renamed back your conf file...
OK. I am set for what I needed. I went to the repo via http and downloaded the rpm. I then used archive manager via nautilus to get to the file(s) I needed. Now to write up the bug report. Minor item, but it bugs me.... ;)
The command line way of getting 1 file out of a rpm is to rpm2cpio.
rpm2cpio <rpmfilename> > <filename.cpio>
Now you have a cpio archive which you can use to get files out of.
Or:
rpm2cpio <rpmfilename> | cpio -idv
That will extract all the files to the current directory (create a temporarily directory and cd into it before you start).
thanks eveyone for all these tips. I REALLY need to put together a couple of remember how to do it notes.
The command line way of getting 1 file out of a rpm is to rpm2cpio.
rpm2cpio <rpmfilename> > <filename.cpio>
Now you have a cpio archive which you can use to get files out of.
Or:
rpm2cpio <rpmfilename> | cpio -idv
And one more:
To extract a single file from a package
rpm2cpio gnupg-1.2.6-6.src.rpm | cpio -ivd gnupg.spec
On Feb 1, 2013, at 11:56 AM, Ali Corbin ali.corbin@gmail.com wrote:
The command line way of getting 1 file out of a rpm is to rpm2cpio.
rpm2cpio <rpmfilename> > <filename.cpio>
Now you have a cpio archive which you can use to get files out of.
Or:
rpm2cpio <rpmfilename> | cpio -idv
And one more:
To extract a single file from a package
rpm2cpio gnupg-1.2.6-6.src.rpm | cpio -ivd gnupg.spec
I know it's petty, but every time I realize I need to use cpio to do this, it really annoys me. This is the only present day use of cpio I'm aware of.
Todd