Author Topic: the difference between rpm and srpm  (Read 989 times)

fuckoffmicrosoft

  • Member
  • **
  • Posts: 73
  • Kudos: 0
    • http://jeujeu.ath.cx
the difference between rpm and srpm
« on: 25 September 2002, 22:22 »
im usin redhat 7.3

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
the difference between rpm and srpm
« Reply #1 on: 25 September 2002, 22:34 »
SRPM or src.rpm means "source rpm".  A source RPM is an RPM that contains the source code for the package and spec file used to create the binary (RPM or i386.rpm) RPM.  If you do an:

# rpm --rebuild somepackage.src.rpm

it will build the binary RPM(s) and install those freshly built RPM(s) into your system. somepackage-x.x.i386.rpm tells you the RPM package name, the version, that it is a binary build for an x86 processor and can only be installed and run on a system with that processor type.  SRPMs are not processor specific/dependant as they have to be built/compiled before being installed.

[ September 25, 2002: Message edited by: void main ]

Someone please remove this account. Thanks...

Calum

  • Global Moderator
  • Member
  • ***
  • Posts: 7,812
  • Kudos: 1000
    • Calum Carlyle's music
the difference between rpm and srpm
« Reply #2 on: 26 September 2002, 01:12 »
so srpms are those files with .src.rpm at the end?

presumably it would be far better (more stable * likely to build properly et c) to do the above using a source rpm than to install a binary?

Also, what happens if you just rpm -Uvh'' a .src.rpm file?
visit these websites and make yourself happy forever:
It's my music! | My music on MySpace | Integrational Polytheism

Master of Reality

  • VIP
  • Member
  • ***
  • Posts: 4,249
  • Kudos: 177
    • http://www.bobhub.tk
the difference between rpm and srpm
« Reply #3 on: 26 September 2002, 01:30 »
it will put the source somewhere in /usr/src for you to use.
Disorder | Rating
Paranoid: Moderate
Schizoid: Moderate
Linux User #283518
'It takes more than a self-inflicted gunshot wound to the head to stop Bob'

fuckoffmicrosoft

  • Member
  • **
  • Posts: 73
  • Kudos: 0
    • http://jeujeu.ath.cx
the difference between rpm and srpm
« Reply #4 on: 26 September 2002, 02:07 »
ok so i tried redhat for server but i dont really like the interface either

next question can mandrake use redhat rpm or just mandrake rpm?

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
the difference between rpm and srpm
« Reply #5 on: 26 September 2002, 05:37 »
I assume by "interface" you mean "graphical interface" or GUI such as KDE/Gnome/etc. If so you shouldn't care about the interface if you are using it as a server. No need to ever see the interface. Typically you don't even run X on a "server".  You might download and install webmin as that it the best interface for server management for n00bs. Regardless if you are running RedHat or many other OSs, webmin is the same across all OSs.

[ September 25, 2002: Message edited by: void main ]

Someone please remove this account. Thanks...

fuckoffmicrosoft

  • Member
  • **
  • Posts: 73
  • Kudos: 0
    • http://jeujeu.ath.cx
the difference between rpm and srpm
« Reply #6 on: 26 September 2002, 07:26 »
ok back to redhat   :D  now the other 2 discs i downloaded wth are they fot the rpm discs is that the applications?

also a good open source web host control panel?

fuckoffmicrosoft

  • Member
  • **
  • Posts: 73
  • Kudos: 0
    • http://jeujeu.ath.cx
the difference between rpm and srpm
« Reply #7 on: 26 September 2002, 07:27 »
quote:
Originally posted by void main:
I assume by "interface" you mean "graphical interface" or GUI such as KDE/Gnome/etc. If so you shouldn't care about the interface if you are using it as a server. No need to ever see the interface. Typically you don't even run X on a "server".  You might download and install webmin as that it the best interface for server management for n00bs. Regardless if you are running RedHat or many other OSs, webmin is the same across all OSs.

im just using gui for main setup

[ September 25, 2002: Message edited by: void main ]


voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
the difference between rpm and srpm
« Reply #8 on: 26 September 2002, 07:35 »
quote:
Originally posted by fuckoffmicrosoft:
ok back to redhat    :D   now the other 2 discs i downloaded wth are they fot the rpm discs is that the applications?

also a good open source web host control panel?



All 3 disks are for RedHat installation in general. The good open source web host control panel you are asking for I mentioned in the message above. It's called "webmin" and you can get the RPM from http://www.webmin.com/

Once you download and install it you should from any of your computers on your network enter http://xxx.xxx.xxx.xxx:10000 in your browser where xxx.xxx.xxx.xxx is the IP address of your server.  It will prompt you for a login ID and password. Enter "root" and whatever you set the root password to.
Someone please remove this account. Thanks...

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
the difference between rpm and srpm
« Reply #9 on: 26 September 2002, 07:45 »
quote:
Originally posted by Calum:
so srpms are those files with .src.rpm at the end?



Yes.

 
quote:

presumably it would be far better (more stable * likely to build properly et c) to do the above using a source rpm than to install a binary?



Not necessarily.  Theoretically you would end up with the same *.rpm binary that would be available for download (assuming you downloaded the *correct* binary for your system).  It does take some of the thinking out of it as it will determine what system you are running on and build the appropriate binary RPM for your system.  It does take longer obviously, especially on larger packages depending on the speed of your system.

 
quote:

Also, what happens if you just rpm -Uvh'' a .src.rpm file?



If you are on RedHat it will put the *.tar.gz source file in the /usr/src/redhat/SOURCES directory and put the spec file in the /usr/src/redhat/SPECS directory. You can then use the "rpm" command on the spec file and perform any part or all of the build and install process. See "man rpm" it's pretty well detailed there.
Someone please remove this account. Thanks...

sporkme

  • Member
  • **
  • Posts: 501
  • Kudos: 149
    • http://sporkme.net/
the difference between rpm and srpm
« Reply #10 on: 26 September 2002, 10:33 »
describe specifically the problem you are encountering.

unlike windows, linux has many faces -- that is, with your red hat, you boot, then you choose a GRAPHICAL USER INTERFACE and let it be for a few months, then reboot, etc...

if you are having difficulty with kde or gnome or whatever you are using, check that you have the latest release, and then jack with it til it looks pretty and plays nice.

there is little to say... you have in your hands the best thing since slices smurfs
just that you do not take an interest in politics does not mean that politics will not take an interest in you.  -pericles 430 b.c.