LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 04-24-2011, 07:52 AM   #1
sudeepkulkarni
Member
 
Registered: Mar 2011
Location: Sangli, Maharashtra, India
Distribution: Linux Mint 11 (Katya), Slackware 13.1, Slackware 13.37
Posts: 30

Rep: Reputation: 0
Unhappy What are the steps to build and install a Slackware package from a RPM package?


Newbie needs help.

I know about sbopkg. But I want to be able to install manually from RPM packages.
 
Old 04-24-2011, 07:54 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,772

Rep: Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294
Hi,

You can run:
Code:
rpm2tgz package.rpm
installpkg package.tgz
 
Old 04-24-2011, 07:55 AM   #3
coralfang
Member
 
Registered: Nov 2010
Location: Bristol, UK
Distribution: Slackware, FreeBSD, Mint
Posts: 137

Rep: Reputation: 31
http://www.slackware.com/config/packages.php

The information at the bottom of the page tells you how to convert an rpm to a slackware compatible package.
 
Old 04-24-2011, 09:00 AM   #4
XGizzmo
Member
 
Registered: Mar 2007
Distribution: Slackware
Posts: 264

Rep: Reputation: 68
Quote:
Originally Posted by sudeepkulkarni View Post
Newbie needs help.

I know about sbopkg. But I want to be able to install manually from RPM packages.
There is a near 100% chance you do not want to do this. RPM's are not made for slackware.
You can not install just any old RPM and have it work and there is a good chance you would
also break your slackware install. There are a few 3rd party applications that are distributed
in RPM as sort of a universal package but even these need special care to integrate with
slackware.
 
Old 04-24-2011, 09:02 AM   #5
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,185

Rep: Reputation: 285Reputation: 285Reputation: 285
In my view it would be better to build a package using a slackbuild because you should make a slack-desc and might need a doinst.sh. You can look at the open office slackbuild on sbo for an idea: http://slackbuilds.org/slackbuilds/1...org.SlackBuild

The conversion bits:

Code:
for FILE in *.rpm ; do rpm2cpio < $FILE | cpio -imdv ; done
mv opt usr $PKG
 
Old 04-25-2011, 07:46 AM   #6
sudeepkulkarni
Member
 
Registered: Mar 2011
Location: Sangli, Maharashtra, India
Distribution: Linux Mint 11 (Katya), Slackware 13.1, Slackware 13.37
Posts: 30

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by XGizzmo View Post
There is a near 100% chance you do not want to do this. RPM's are not made for slackware.
You can not install just any old RPM and have it work and there is a good chance you would
also break your slackware install. There are a few 3rd party applications that are distributed
in RPM as sort of a universal package but even these need special care to integrate with
slackware.
Will certainly keep that in mind. Thank you.
 
Old 04-25-2011, 12:51 PM   #7
slac-in-the-box
Member
 
Registered: Mar 2010
Location: oregon
Distribution: slackware64-14.1
Posts: 159

Rep: Reputation: 26
rpm2cpio package.rpm | cpio -vidm

Assuming that you cannot find a slackbuild for your package, put rpm package in its own directory and cd to that directory, then

Code:
rpm2cpio package.rpm | cpio -vidm
Then inspect the contents of the folder to make sure it is compatible with slackware's layout: binaries are in /usr/bin , libraries in /usr/lib or /usr/lib64, startup configurations in /etc/rc.d, and so forth. If it seems like it's compatible go ahead and use makepkg to create a slackware package , and then installpkg to install it... the beautiful thing about slackware packages, is you can use removepkg to remove it if it doesn't work or somehow breaks the system, unless it breaks system so much that you can no longer use the pkgtools, in which case you boot from the install media, and mount your file system(s) and then use removepkg from the startup media with the ROOT=/mountpointofyourfilesystem to remove the package...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to build httpd-2.2.3-22 as a relocatable rpm package in RHEL 5.3 renjunix Linux - Server 3 11-02-2009 09:04 AM
reinstalling the rpm build package Linden Goodwin Linux - Newbie 1 06-28-2009 06:44 PM
How to build a slackware package : itz2000 Slackware 12 05-15-2007 07:47 PM
Not able to install rpm-build package deepika Linux - Newbie 2 07-19-2003 09:45 PM


All times are GMT -5. The time now is 08:29 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration