 |
|
 |
|
Next: plz bear w me, new to RPMS ARCH ques
|
| Author |
Message |
External

Since: Jul 24, 2003 Posts: 5
|
(Msg. 1) Posted: Tue Nov 18, 2003 8:38 am
Post subject: Creating a rpm Archived from groups: linux>redhat>rpm, others (more info?)
|
|
|
Hi,
I like to create a rpm to use the advantage of the versioncheck and package
dependencies. The software I like to install with the rpm does not have to
be compiled. Actually I just want to pack just a few files togeather. I
created that spec file but nothing happends, not even an error message. rpm
just gives me the help parameters again.
I use "rpm -bb SPECS/test.spec" and the file is located under
/usr/src/packages/SPECS/ :
--------------------------------
---- test.spec ------------------
Summary: Test RPM.
Name: TEST
Version: 1.0.2
Release: 3
Vendor: TESTCompany
Requires: testpackage >=1.0.1
%description
A test rpm.
%define INSTALL_DIR /usr/teststuff
%prep
%install
echo Install Test Test
%clean
rm -rf $RPM_BUILD_ROOT
%files
/usr/testdir
/usr/testfile
%changelog
* Tue Nov 18 2003 test <test.RemoveThis@test.com>
- test (release 3)
--------------------------------
Hope someone can give me a hint whats wrong.
Sebastian |
|
| Back to top |
|
 |  |
External

Since: Mar 11, 2004 Posts: 163
|
(Msg. 2) Posted: Tue Nov 18, 2003 2:30 pm
Post subject: Re: Creating a rpm [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Tue, 18 Nov 2003 14:38:51 +0100, Sebastian Scholz wrote:
> Hi,
>
> I like to create a rpm to use the advantage of the versioncheck and
> package
> dependencies. The software I like to install with the rpm does not have to
> be compiled. Actually I just want to pack just a few files togeather. I
> created that spec file but nothing happends, not even an error message.
> rpm just gives me the help parameters again.
>
> I use "rpm -bb SPECS/test.spec" and the file is located under
> /usr/src/packages/SPECS/ :
>
use
rpmbuild -bb SPECS/test.spec
Jacob |
|
| Back to top |
|
 |  |
External

Since: Jul 24, 2003 Posts: 5
|
(Msg. 3) Posted: Wed Nov 19, 2003 3:51 am
Post subject: Re: Creating a rpm [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Thanks alot I will try that.
But why do all the HOWTOs like this one :
http://www.ibiblio.org/pub/Linux/docs/HOWTO/other-formats/html_single/RPM-HO
WTO.html#SPEC-FILE
say I should do that :
rpm -ba foobar-1.0.spec
Sebastian
"Jacob Heider" <lord-jacob.RemoveThis@comcast.net> schrieb im Newsbeitrag
news:ca1f935583755faa840d0109bdbed858@news.teranews.com...
> On Tue, 18 Nov 2003 14:38:51 +0100, Sebastian Scholz wrote:
>
> > Hi,
> >
> > I like to create a rpm to use the advantage of the versioncheck and
> > package
> > dependencies. The software I like to install with the rpm does not have
to
> > be compiled. Actually I just want to pack just a few files togeather. I
> > created that spec file but nothing happends, not even an error message.
> > rpm just gives me the help parameters again.
> >
> > I use "rpm -bb SPECS/test.spec" and the file is located under
> > /usr/src/packages/SPECS/ :
> >
>
> use
>
> rpmbuild -bb SPECS/test.spec
>
> Jacob |
|
| Back to top |
|
 |  |
External

Since: Jul 24, 2003 Posts: 5
|
(Msg. 4) Posted: Wed Nov 19, 2003 8:07 am
Post subject: Re: Creating a rpm [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Ok, that works so far. Now I have 2 new problems. 1st when I use rpm -i
package.rpm it will install but I cant find the files anywhere. And 2nd when
I try to use rpm -e package.rpm it tells me that the package is not
installed, but says package already installed when I use rpm -i package.rpm
again.
Any idea ?
Thanks, Sebastian
"Jacob Heider" <lord-jacob.RemoveThis@comcast.net> schrieb im Newsbeitrag
news:ca1f935583755faa840d0109bdbed858@news.teranews.com...
> On Tue, 18 Nov 2003 14:38:51 +0100, Sebastian Scholz wrote:
>
> > Hi,
> >
> > I like to create a rpm to use the advantage of the versioncheck and
> > package
> > dependencies. The software I like to install with the rpm does not have
to
> > be compiled. Actually I just want to pack just a few files togeather. I
> > created that spec file but nothing happends, not even an error message.
> > rpm just gives me the help parameters again.
> >
> > I use "rpm -bb SPECS/test.spec" and the file is located under
> > /usr/src/packages/SPECS/ :
> >
>
> use
>
> rpmbuild -bb SPECS/test.spec
>
> Jacob |
|
| Back to top |
|
 |  |
External

Since: Mar 11, 2004 Posts: 163
|
(Msg. 5) Posted: Wed Nov 19, 2003 9:32 pm
Post subject: Re: Creating a rpm [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Wed, 19 Nov 2003 14:07:52 +0100, Sebastian Scholz wrote:
<top posting corrected>
> "Jacob Heider" <lord-jacob.TakeThisOut@comcast.net> schrieb im Newsbeitrag
> news:ca1f935583755faa840d0109bdbed858@news.teranews.com...
>> On Tue, 18 Nov 2003 14:38:51 +0100, Sebastian Scholz wrote:
>>
>> > Hi,
>> >
>> > I like to create a rpm to use the advantage of the versioncheck and
>> > package
>> > dependencies. The software I like to install with the rpm does not
>> > have
> to
>> > be compiled. Actually I just want to pack just a few files togeather.
>> > I created that spec file but nothing happends, not even an error
>> > message. rpm just gives me the help parameters again.
>> >
>> > I use "rpm -bb SPECS/test.spec" and the file is located under
>> > /usr/src/packages/SPECS/ :
>> >
>> >
>> use
>>
>> rpmbuild -bb SPECS/test.spec
>>
>> Jacob
>
> Ok, that works so far. Now I have 2 new problems. 1st when I use rpm -i
> package.rpm it will install but I cant find the files anywhere. And 2nd
> when I try to use rpm -e package.rpm it tells me that the package is not
> installed, but says package already installed when I use rpm -i
> package.rpm again.
>
> Any idea ?
>
> Thanks, Sebastian
>
Sure, try
rpm -q package
rpm -ql package
and
rpm -e package
to delete
(things like -e and -q take the package w/o the .rpm)
Jacob |
|
| Back to top |
|
 |  |
External

Since: Jul 24, 2003 Posts: 5
|
(Msg. 6) Posted: Thu Nov 20, 2003 3:37 am
Post subject: Re: Creating a rpm [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Thanks again Jacob. The only problem left with the "rpm -e package" is that
I was somehow able to install the package twice and it tells me that the
package name shows more then one package.
There is one more prblem with the rpm itself. I try to install it which
works fine but the files I added in the SPEC file (see the first posting)
are nowhere seen.
Hope you can give me a hint here aswell
Sebastian
> Sure, try
>
> rpm -q package
> rpm -ql package
> and
> rpm -e package
> to delete
>
> (things like -e and -q take the package w/o the .rpm)
>
> Jacob |
|
| Back to top |
|
 |  |
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|
 |
|
|