LinuxQuestions.org
Visit Jeremy's Blog.
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 06-06-2003, 06:53 PM   #1
hikizume
LQ Newbie
 
Registered: Jun 2003
Distribution: Slackware 9.0
Posts: 6

Rep: Reputation: 0
Package Question?


is it possible to get packages off another distro's cd's? i have SuSE, but i love my slackware way more, i just want to import (if possible) packages off those cd's,

is this possible?

thank you.
 
Old 06-06-2003, 07:05 PM   #2
Blindsight
Member
 
Registered: Mar 2003
Distribution: Slackware
Posts: 234

Rep: Reputation: 30
Ja

Yes, you most certainly can, provided you have the appropriate package extractor (ie. rpm's need unpacked with rpm, .deb need extracted with... apt-get I think? been a while, but you get my point.) With Slackware's 'package manager', pkgtool, you can upgrade and install with .tgz files. All this is is a gziped tar, which makes it much more portable because most distributions include gzip and tar by default.
 
Old 06-06-2003, 07:19 PM   #3
hikizume
LQ Newbie
 
Registered: Jun 2003
Distribution: Slackware 9.0
Posts: 6

Original Poster
Rep: Reputation: 0
thanks alot

that'll save me alot of effort and time... The joyz of *nix...
 
Old 06-06-2003, 08:20 PM   #4
Blindsight
Member
 
Registered: Mar 2003
Distribution: Slackware
Posts: 234

Rep: Reputation: 30
indeed

Indeed, happy hacking.
 
Old 06-06-2003, 10:36 PM   #5
contrasutra
LQ Guru
 
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445

Rep: Reputation: 47
OK, first: tgzs are NOT the same thing as tar.gz . tar.gz's are compressed tarballs that contain SOURCE.

Tgzs are packaged BINARIES that contain install scripts. they are very different.


to install rpms in Slackware, you have to convert the rpm into a tgz. use the command: rpm2tgz filename.rpm , this will make a tgz, that you can (possibly) install.

Make sure you have the RPM "package" installed from the slackware disk though.
 
Old 06-06-2003, 11:30 PM   #6
Blindsight
Member
 
Registered: Mar 2003
Distribution: Slackware
Posts: 234

Rep: Reputation: 30
tgz's are not always binaries. .tgz and .tar.gz are both extracted using tar xzvf <filename>. Doesn't matter if it's source or binary.

(Here's an example, if you really need it.. taken from www.gzip.com, no less:
{
How can I extract a tar.gz or .tgz file?
Files with extension tar.gz or .tgz are tar files compressed with gzip. On Unix extract them with:
gunzip < file.tar.gz | tar xvf -
gunzip < file.tgz | tar xvf -
}
Same File whether it's source or binary.

Also, 'tar xzvf <filename>' does the same as 'gunzip < file.tar.gz | tar xvf -')

Also, you can use "rpm" in Slackware. You don't need to waste your time converting it to a tgz. That's what the rpm package is you speak of.

read up.
 
Old 06-07-2003, 09:18 AM   #7
hikizume
LQ Newbie
 
Registered: Jun 2003
Distribution: Slackware 9.0
Posts: 6

Original Poster
Rep: Reputation: 0
thanx all, i think mastering the install process of linux is a feat in itself, but i guess like anything once you know how its easy...


still learning... thankx
 
Old 06-07-2003, 10:10 AM   #8
contrasutra
LQ Guru
 
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445

Rep: Reputation: 47
the RPM package is there to allow you to convert rpms. PKGTOOL has no way of controlling rpms.

Quote:
With Slackware's 'package manager', pkgtool, you can upgrade and install with .tgz files. All this is is a gziped tar, which makes it much more portable because most distributions include gzip and tar by default.
yes, tgzs can be source or a package, but those two are very different. a source tgz will be untarred and installed like source, while a slack-pack tgz is left compressed and installed via the "installpkg" command. See, you said that slack-packs were just gziped source, when they are not.
 
Old 06-07-2003, 10:43 AM   #9
Blindsight
Member
 
Registered: Mar 2003
Distribution: Slackware
Posts: 234

Rep: Reputation: 30
For clarities sake:

Quote:
See, you said that slack-packs were just gziped source, when they are not.
From my original post:

Quote:
With Slackware's 'package manager', pkgtool, you can upgrade and install with .tgz files. All this is is a gziped tar, which makes it much more portable because most distributions include gzip and tar by default.
I said gzipped tar, don't put words in my mouth.
 
Old 06-07-2003, 11:00 AM   #10
contrasutra
LQ Guru
 
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445

Rep: Reputation: 47
Quote:
All this is is a...
you said the only thing it is is a gziped tar, when its a Gziped tarred BINARY, as opposed to a gzipped tarred source package. Yes, technically what you said wasnt wrong, but you were waay too vague,and misleading.

also:

Quote:
which makes it much more portable because most distributions include gzip and tar by default.
See, thats misleading too. You cant install a slackware package in other non-tgz based distros. You may be able to extract the binaries, and install it yourself by hand, but that might not work anyway. Slack-packs are not really portable, thats my point. They are just basic (ie. no dependancy checking)
 
Old 06-07-2003, 11:48 AM   #11
Blindsight
Member
 
Registered: Mar 2003
Distribution: Slackware
Posts: 234

Rep: Reputation: 30
clarity, round 2

Quote:
which makes it much more portable because most distributions include gzip and tar by default.
I'll expand that.

Makes it much more portable than an RPM, much more portable than a .DEB, much more portable than a .bz2, see the trend forming? Would you disagree that most distributions, if not all that you yourself have *ever* encountered, have been installed with gzip and tar?

Quote:
All this is is a gziped tar
I said nothing of source or binary. A gzipped tar is a gzipped tar no matter how you cut it. ie. file.tar.gz == file.tgz;

I do understand the point you're trying to make about the source and binary archives, but it's not correct. I provided proof of this from gzip's own webpage.

In many cases vendors will provide their source in a .tar.gz, and the binary in a .tgz slackware package, for example, but either way, it's a gzipped tar archive, whether it's binary or source.

This is getting redundant. Please email me if you have other concerns. If I'm wrong and you have *proof*, I'd love to hear it. But I don't think it gets more authoratative than the vendor in question's webpage.
 
Old 04-23-2004, 04:06 PM   #12
kerrymwarren
LQ Newbie
 
Registered: Apr 2004
Posts: 6

Rep: Reputation: 0
Excellent!

This exchange has answered my question, before I asked it - 'what's the deal with .tgz's and tarred compressed files?' - along with providing more familiarization with the slack method of package installation.

Thanks!

-K
 
Old 04-23-2004, 04:09 PM   #13
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
An excellent central source for Slack packages is: www.linuxpackages.net -- J.W.
 
  


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
Question about package mgmt thorney Slackware 4 11-25-2005 01:31 PM
Package question dushkinup Fedora 2 03-14-2004 01:59 AM
package question wr3ck3d *BSD 0 02-26-2004 09:23 AM
Package Management Question jlangelier Slackware 2 07-15-2003 06:41 PM
RH 7.3 Package Question Streams Linux - Software 1 11-25-2002 03:40 AM

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

All times are GMT -5. The time now is 09:54 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