LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 09-11-2007, 08:35 AM   #1
JosephS
Member
 
Registered: Jun 2007
Distribution: Debian Jessie, Bunsenlabs
Posts: 586

Rep: Reputation: 38
How to use Package Management?


Using Slackware 12

I have a few questions about Package management:

Quote:
If you pass the ROOT environment variable before installpkg, that path will be
used for the root directory. This is useful for setting up new drives for your
root directory. They will typically be mounted to /mnt or something other than
/.
What is this referring to?

How do I deal with dependencies: find the list for the package, and know where
to install them?
Do I make the program and it's dependencies into a package?


Can I install packages that aren't in the Slackware repository or
an RPM Package?

One program I want to install is:
openoffice:OOo_2.2.1_LinuxIntel_install_wJRE_en-US.tar.gz
which I downloaded from Openoffice.org
 
Old 09-11-2007, 08:42 AM   #2
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
Quote:
Originally Posted by JosephS View Post
Using Slackware 12

I have a few questions about Package management:


What is this referring to?

How do I deal with dependencies: find the list for the package, and know where
to install them?
Do I make the program and it's dependencies into a package?


Can I install packages that aren't in the Slackware repository or
an RPM Package?

One program I want to install is:
openoffice:OOo_2.2.1_LinuxIntel_install_wJRE_en-US.tar.gz
which I downloaded from Openoffice.org
I'll address the immediate problem now (and hopefully come back later), as I don't have time to get too elaborate right now...

First, you don't need the OOo with JRE -- Slackware includes the jre package.
Second, you probably want to use the SlackBuild script at http://slackbuilds.org to build a Slackware package from the binary the OOo guys distribute. Read the instructions for doing that at http://slackbuilds.org/howto/

If you want it already packaged up for Slackware, have a look at the first and/or second link in my signature.
 
Old 09-11-2007, 09:20 AM   #3
adriv
Member
 
Registered: Nov 2005
Location: Diessen, The Netherlands
Distribution: Slackware 15
Posts: 700

Rep: Reputation: 43
You can install RPM's (rpm2tgz or with src2pkg), but my advice is not to do that unless there is no other choice. As Robbie Workman stated, use SlackBuild scripts if possible or else Slackware packages from his site, Alien Bob's, Slacky-eu or LinuxPackages.net.
Compiling from source (using a SlackBuild script) has my preference.
 
Old 09-11-2007, 09:36 AM   #4
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
...and with regard to dependencies, all of the sites mentioned will tell you if there are dependencies, what they are, and provide SlackBuilds for those packages as well.

Brian
 
Old 09-11-2007, 04:34 PM   #5
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Quote:
Originally Posted by adriv View Post
You can install RPM's (rpm2tgz or with src2pkg), but my advice is not to do that unless there is no other choice. As Robbie Workman stated, use SlackBuild scripts if possible or else Slackware packages from his site, Alien Bob's, Slacky-eu or LinuxPackages.net.
Compiling from source (using a SlackBuild script) has my preference.
Hi,

Just too add a few more links to check then look at the packages section of the 'Slackware-Links' formerly 'Slackware LQ Suggestions Links!' for some good online reference.
 
Old 09-12-2007, 02:48 AM   #6
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Quote:
Originally Posted by JosephS View Post
What is this referring to?
Seems pretty self-explanatory to me. installpkg by default will unpack the package in /. The package will contain the directories containing the files (like etc, lib, bin and so on) and when you unpack it in /, the files go into those directories in /, so /etc, /lib, /bin, etc. This is usually what you want. If you want to set up a / directory somewhere else, on some other partition that happens to be mounted somewhere (like /mnt as given in the example), you'd use ROOT=/mnt installpkg foo.tgz and the package would be unpacked there, so any directories would be under /mnt (/mnt/etc, /mnt/lib, /mnt/bin for example).
 
Old 09-17-2007, 08:26 AM   #7
JosephS
Member
 
Registered: Jun 2007
Distribution: Debian Jessie, Bunsenlabs
Posts: 586

Original Poster
Rep: Reputation: 38
Thanks for the responses.

I tried a couple of things:

I went to slackbuilds.org and downloaded:
source:
OOo_2.2.1_LinuxIntel_install_en-US.tar.gz
slackbuild:
openoffice.org.tar.gz

I followed the instructions in the HowTo and ended up with the program
installed in
/tmp/SBo/Package-openoffice.org/
I didn't find a slackware package.
Did I use the wrong slackbuild?
-------------------------------------------------------------------------
I also tried to configure and compile the program from source:
From what I read I should download and unpack the source and then run the
commands:
./configure --prefix=/slackpack
make
make install

I unpacked OOo_2.2.1_LinuxIntel_install_en-US.tar.gz
I moved the unpacked source file: OOF680_m18_native_packed-1_en-US.9161
into the directory slackpack and ran ./configure --prefix=/slackpack
I received the following result
./configure: No such file or directory

The directories under OOF680_m18_native_packed-1_en-US.9161 are:
RPMS licenses readmes

Thanks.
 
Old 09-17-2007, 08:58 AM   #8
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
Quote:
Originally Posted by JosephS View Post
Thanks for the responses.

I tried a couple of things:

I went to slackbuilds.org and downloaded:
source:
OOo_2.2.1_LinuxIntel_install_en-US.tar.gz
slackbuild:
openoffice.org.tar.gz

I followed the instructions in the HowTo and ended up with the program
installed in
/tmp/SBo/Package-openoffice.org/
I didn't find a slackware package.
Did I use the wrong slackbuild?
No, but you did misinterpret the instructions. If everything took place as expected, you have a *package* in /tmp -- the contents of /tmp/SBo/package-openoffice.org/ are irrelevant (this is where the package *contents* were placed during the packaging process). You use installpkg(8) to installed the actual package in /tmp.

Quote:
I also tried to configure and compile the program from source:
From what I read I should download and unpack the source and then run the
commands:
./configure --prefix=/slackpack
make
make install

I unpacked OOo_2.2.1_LinuxIntel_install_en-US.tar.gz
I moved the unpacked source file: OOF680_m18_native_packed-1_en-US.9161
into the directory slackpack and ran ./configure --prefix=/slackpack
I received the following result
./configure: No such file or directory
Exactly as expected. The file you downloaded is not source code - it's a precompiled binary.
 
Old 09-17-2007, 03:38 PM   #9
The GNUinator
Member
 
Registered: Oct 2006
Location: Fort Collins, CO
Distribution: Slackware 14.0, 14.1
Posts: 71

Rep: Reputation: 15
On a related note, once you install Slackware how do you keep it up to date?
I have found that slackupdate.sh from

http://darklinux.net/slackupdate

does a great job.

hth,

The GNUinator
 
Old 09-17-2007, 03:49 PM   #10
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
On the subject of OpenOffice.org, I just pushed the new release (2.3.0) to my personal website. It's not at SlackBuilds.org yet, but you can get the build script I used from my sources directory (that's the one which will eventually be at SBo anyway).
 
Old 09-17-2007, 03:55 PM   #11
simcox1
Member
 
Registered: Mar 2005
Location: UK
Distribution: Slackware
Posts: 794
Blog Entries: 2

Rep: Reputation: 30
All updates for slackware 12 are here.

http://slackware.osuosl.org/slackwar...ches/packages/

You just have to download and install them using upgradepkg. It's the simplest way. Any new updates will also go into that directory.
 
Old 09-17-2007, 04:39 PM   #12
adriv
Member
 
Registered: Nov 2005
Location: Diessen, The Netherlands
Distribution: Slackware 15
Posts: 700

Rep: Reputation: 43
Quote:
Originally Posted by The GNUinator View Post
On a related note, once you install Slackware how do you keep it up to date?
I have found that slackupdate.sh from

http://darklinux.net/slackupdate

does a great job.

hth,

The GNUinator
I don't like automatic update tools.
Wanna be in control myself.
KslackCheck (basically just a GUI for rsync) is still my favorite.
It doesn't do anything but bring the updates to your pc (if you want!). Installing them with upgradepkg is a snap and you get the chance to read the README's first...

Last edited by adriv; 09-17-2007 at 04:42 PM.
 
Old 09-22-2007, 09:13 PM   #13
Unregistered
Member
 
Registered: Apr 2007
Posts: 63

Rep: Reputation: 15
Quote:
Originally Posted by The GNUinator View Post
On a related note, once you install Slackware how do you keep it up to date?
I have found that slackupdate.sh from

http://darklinux.net/slackupdate

does a great job.

hth,

The GNUinator
It says:

SlackUpdate currently supports: Slackware 8.1 - 10.2, and current

Does it work for slack 12?
 
Old 09-24-2007, 08:24 AM   #14
JosephS
Member
 
Registered: Jun 2007
Distribution: Debian Jessie, Bunsenlabs
Posts: 586

Original Poster
Rep: Reputation: 38
Quote:
Exactly as expected. The file you downloaded is not source code - it's a precompiled binary
That's probably why the slackbuild script didn't work either, but I downloaded the file from the link at slackbuild.org:
Download Source:
OOo_2.2.1_LinuxIntel_install_en-US.tar.gz
-------------------------------------------------------------

I decided to use the slackbuild script for openoffice.org-2.3.0
I went to: http://rlworkman.net/pkgs/sources/12...fice.org-2.3.0
Does this contain the source I can use for openoffice 2.3.0 slackbuild?
OOo_2.3.0_LinuxIntel_install_en-US.tar.gz

I also went to openoffice.org, but am unsure about which packages I need to download for the source to use the slackbuild script:
Quote:
Download

Source packages

core source package (117 MB)

system source package (28 MB)

binfilter source package (16 MB)

l10n source package (70 MB)

sdk source package (28 MB)
 
Old 09-24-2007, 09:09 AM   #15
adriv
Member
 
Registered: Nov 2005
Location: Diessen, The Netherlands
Distribution: Slackware 15
Posts: 700

Rep: Reputation: 43
Quote:
Originally Posted by JosephS View Post
That's probably why the slackbuild script didn't work either, but I downloaded the file from the link at slackbuild.org:
Download Source:
OOo_2.2.1_LinuxIntel_install_en-US.tar.gz
-------------------------------------------------------------

I decided to use the slackbuild script for openoffice.org-2.3.0
I went to: http://rlworkman.net/pkgs/sources/12...fice.org-2.3.0
Does this contain the source I can use for openoffice 2.3.0 slackbuild?
OOo_2.3.0_LinuxIntel_install_en-US.tar.gz
Yes, that's the one.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Simple Package management with Synaptic Package Manager LXer Syndicated Linux News 0 12-05-2006 06:33 PM
What Package Management do you Use? pengu Linux - General 23 09-23-2006 01:56 PM
Package management Badut Slackware 9 04-25-2006 10:26 PM
Using Package Archive style package management mugwump84 Linux From Scratch 3 08-25-2005 05:19 PM
Package Management LDZ420 Fedora 3 06-07-2004 11:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration