Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
10-03-2002, 01:32 AM
|
#1
|
Member
Registered: Sep 2002
Distribution: Fedora Core 3
Posts: 247
Rep:
|
tgz files
I know that slackware uses .tgz files for it's package management. But I thought .tgz files and tar.gz files were the same (compressed tarballs). So wouldn't you be able to type "installpkg foo.tar.gz" just like you would "installpkg foo.tgz"? I kinda tried that and it didn't work.
Also, let's say you have foo.tar.gz. To get it into "slackware format", could I cheat and change its filename to foo.tgz by "mv foo.tar.gz foo.tgz" ? And then install that foo.tgz using the slackware installer? Or is the slackware .tgz files a special package, kinda like Redhat rpm's?
|
|
|
10-03-2002, 02:45 AM
|
#2
|
Senior Member
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152
Rep:
|
No.
Slackware uses the common "tarball", but adds something to it before it
can be considered a "slackware package". If you take a slackware
package, untar, ungzip it, you'll find that there is a file in a directory called
install. This file describes the package, and and tells pkgtool what to do
after putting all the files where they belong (perhaps modify an init script).
|
|
|
10-03-2002, 10:41 AM
|
#3
|
Senior Member
Registered: Jan 2002
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207
Rep:
|
Thats not completely correct, Yes slackware packages have the INSTALL file but what it does is sets permisssions and symlinks. Slackware packages are precompiled binary packages, kinda like RPMs and you can not just installpkg somefile.tar.gz because thats source code.
Confusing thing is that .tar.gz files can be called .tgz as well, like slackware packages, but they are not Slackware packages. They are source.
You can however make slackware packages from .source .tgz and .tar.gz files. Read http://www.linuxorbit.com/modules.ph...icle&artid=467
to find out how.
HTH
-NSKL
|
|
|
10-03-2002, 01:53 PM
|
#4
|
Senior Member
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152
Rep:
|
The install file is what sets up symlinks, removes old files; it does whatever
is necessary for the package to be fully usable, as defined by the creator.
THIS is what makes it a Slackware package. I could distribute a
Slackware package that is source, as long as I could get pkgtool to handle
it correctly, it's a valid package.
From "man makepkg":
makepkg creates a new Slackware compatible package. The
package is constructed using the contents of the current directory and all
subdirectories. If symbolic links exist, they will be converted to script code
to recreate them when the package is installed. This code will be
appended to the primary installation script ( install/doinst.sh ) , or, if that
script does not exist it will be created with those contents. The package
will be written out to the file packagename which should be the full name,
including the extension (usually .tgz).
makepkg allows the creator to reset the permissions of the files, so this
is done before any user gets the package.
It says nothing about what has to be in the (sub)directories.
All of the slackpack tools are simply shell scripts, and as such can be read
(or modified) by anyone. Browse through them sometime.
|
|
|
10-03-2002, 03:27 PM
|
#5
|
Senior Member
Registered: Jan 2002
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207
Rep:
|
Yeah, but he asked if he can just do a installpkg foo.tar.gz and he Cant! At least as far as i know. Slackware packages are precompiled binaries, so he has to compile them, put them in correct directory structure, and then run makepkg to create a valid slackware package. Check out the link i posted above.
Try installpkg foo.tar.gz and see for yourself what happens...
-NSKL
|
|
|
10-03-2002, 04:12 PM
|
#6
|
Senior Member
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152
Rep:
|
Correct, he cannot do a installpkg foo.[tgz|tar.gz] with impunity, he needs to make sure it's a Slackware package.
Slackware packages are NOT necessarily precompiled binaries! They are
packages of files that require a specific installation procedure that installpkg causes to happen. You could make a Slackware package that
installed source files into /usr/local/src/foo, went into that directory, did a
./configure --special-optimizations && make && make install && \
make clean && cd .. && rm -rf foo (all with exception catching, of course)
It would still be a legitimate Slackware package.
makepkg simply bundles all that up, and appends the creation of symlinks
to the installation script in ./install/
|
|
|
10-04-2002, 10:45 AM
|
#7
|
Senior Member
Registered: Jan 2002
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207
Rep:
|
Hey i didnt know that! thanks for the info, and sorry i again for the confusion i made when i missunderstood you in the first post ^ up there.
Thanks again for clarification.
-NSKL
|
|
|
10-04-2002, 01:20 PM
|
#8
|
Senior Member
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152
Rep:
|
That's fine. I hope I didn't come off too strong. . . Anyway, did we answer
your question, Moger? =-}
|
|
|
10-04-2002, 09:55 PM
|
#9
|
Member
Registered: Sep 2002
Distribution: Fedora Core 3
Posts: 247
Original Poster
Rep:
|
yup
|
|
|
10-05-2002, 02:08 AM
|
#10
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
Sweet, and taught a few of us (ok at least me ) something in the process, thanks!
Cool
|
|
|
10-05-2002, 02:29 AM
|
#11
|
Senior Member
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152
Rep:
|
Yay!!!
|
|
|
All times are GMT -5. The time now is 12:11 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|