[95035] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: .tar.gz to rpm

daemon@ATHENA.MIT.EDU (Jyan-Min Fang)
Wed Oct 14 15:28:08 1998

Date: Wed, 14 Oct 1998 15:31:43 -0400 (EDT)
From: Jyan-Min Fang <fang@beamer8.physics.yale.edu>
To: redhat-list@redhat.com, rpm-list@redhat.com
In-Reply-To: <19981014092804.D8527@adbvdesign.analog.com>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

I think something like "tar czf foo.tgz `rpm -ql foo`" is all that the
original poster asks for, although one loses a lot of useful information
here.

btw, is there a way to "reconstruct" (I don't know if this is the right
word to use here) a rpm file from an installed rpm? Let's say we installed
foo with 'rpm -i foo-1.0.i386.rpm' long time ago. Now we cannot find
foo-1.0.i386.rpm on any ftp site again. Even worse, we cannot find the
source for foo. so my question is, since we know foo is installed on this
machine, can we just grab the files from this machines and put them
together again into a rpm file based on the rpm database on this machine?
Is this possible? One problem I can think of is we won't have src.rpm.
Another is we may lose the pre and post install scripts. (did rpm database
keep the pre and post install scripts?)

Jyan-Min Fang

"Today, I consider myself the luckiest man on the face of the earth"
--- Lou Gehrig --- Go, Yankees!

On Wed, 14 Oct 1998, Thomas Ribbrock (Design/DEG) wrote:

> Shane Poppleton writes:
> > 
> >    How do you turn a .tar.gz into an RPM
> 
> By going to http://www.rpm.org, downloading "Maximum RPM" (i.e. the full rpm
> documentation) and reading, especially chapter 6, which describes how to
> build your own rpms. After that, you should be able to make an rpm out of
> almost anything...
> 
> HTH,
> 
> Thomas
> 
> P.S.: Honestly, I think your question is not quite clear - are you looking
>       for an easy "converter" between the two formats? Then the answer (to
>       the best of my knowledge) is: There is none. If you're looking for a
>       way to build your own rpms, the way I described above is the way to
>       go.


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
		http://www.redhat.com http://archive.redhat.com
         To unsubscribe: mail redhat-list-request@redhat.com with 
                       "unsubscribe" as the Subject.


home help back first fref pref prev next nref lref last post