Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 02-28-2003, 10:26 PM   #16
Senior Member
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 47

I don't see what Heaven7 has to do with compression of data.
It's easy for a program to allocate almost any amount of RAM
that isn't already allocated by the kernel (or other programs). I
can write a few line program that trys to fill all available memory.

Compression of data is using an algorithm (i.e. lzw, LZ77,
Huffman,etc.) to find common patterns, and replace those
patterns with a description of the pattern that takes fewer bits
than the original pattern. It's the same sort of thing that JPEG
and other image file formats use to make the image smaller,
EXCEPT that DCT (one of the most common JPEG compression
algorithms) and most other image compression algorithms are
lossy meaning that once a file is compressed, you can never
recover the original data (from that compressed copy). LZW, etc
are lossless, which means that though all data can be recovered,
it doesn't compress as well.

From the man page of gzip (obviously uses a lossless algorithm):
Gzip uses the Lempel-Ziv algorithm used in zip and PKZIP.
The amount of compression obtained depends on the size of
the input and the distribution of common substrings. Typ-
ically, text such as source code or English is reduced by
60-70%. Compression is generally much better than that
achieved by LZW (as used in compress), Huffman coding (as
used in pack), or adaptive Huffman coding (compact).
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 03-03-2003, 02:45 PM   #17
Registered: Oct 2002
Distribution: Slackware 8.1
Posts: 33

Rep: Reputation: 15
Originally posted by Allen614
Is there a significant size difference between the tarball and the package?
Here are the results of my recent build of openbox-2.3.0

1. 496k openbox-2.3.0.tar.gz (source code, zipped)
2. 4.2M /tmp/openbox-2.3.0/ (source directory, pre-compilation)
3. 28M /tmp/openbox-2.3.0/ (source directory, compiled)
4. 8.9M openbox binaries, compiled with no options
5. 3.5M openbox-2.3.0.tar.gz (slackware package created from #4)

So, you can see that there are serious disk-space gains from compiling software and putting it into a Slackware package vs. keeping the compiled source code around. You would save the most space, obviously, if you just kept the source code tarball, but then you'd have to recompile whenever you wanted to re-install the package. The advantages of making a slackware package, other than space, is that you can easily remove it with pkgtool, and you can easily reinstall it without re-compiling.

As someone else said, your package will generally only work on your system, unless you take pains to keep it generic.

Old 04-27-2003, 05:03 AM   #18
Registered: Jun 2002
Location: UK
Distribution: Used many over the years, main ones now "CentOS", Slackware and Arch
Posts: 31

Rep: Reputation: 15
Question So how do you get a "package description" then ?

This is going to make me look a prize idiot, but I've read man pages till I'm blue in the face and got nowhere, here goes.

When you make a package with "makepkg", EXACTLY how do you tell it what to put in the "Package Description".
Old 04-27-2003, 09:49 AM   #19
LQ Guru
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445

Rep: Reputation: 46
The packages I make can be used on the same computer if I have to reinstall everything, right?

That would be really useful for easy backup and restoration.
Old 05-12-2003, 03:15 PM   #20
Registered: Mar 2003
Location: Florida
Distribution: Slackware 9.1,10.1
Posts: 268

Rep: Reputation: 30
I don't know what went wrong, but I followed the steps given.
In my case I am trying to create a 'samba2.2.8a.tgz' package.
My creation directory is '/D/creation'

1. unpacked samba-2.2.8a.tar.gz
2. cd D/creation/samba-2.2.8a/source
3. ./configure --with-smbmount
4. make
5. make install DESTDIR=/D/creation/package
(I made a directory called 'package' inside 'D/creation')

What happens is instead of installing everything into
'D/creation/package' ,it just installs the program as normal.

So as you can see, this did not work for me.
I don't know if this makes any difference, but I do have the
"checkinstall" package installed. I don't think that should
make any difference though.

The reason that I tried this posted method, is because I could not get a full install with the package that I made with checkinstall. It would not install all of the files into 'usr/local/samba/' . One very important directory 'lib' is not even installed by the '.tgz' that I made with checkinstall.

Well, this sucks. The whole reason that I wanted packages in the first place was so that I can have a clean machine, with removable software. Now I have samba-2.2.8a installed and I don't know if I can remove it. Right back to square one.

Old 04-19-2013, 12:00 AM   #21
Registered: Apr 2011
Distribution: slackware64-current
Posts: 313

Rep: Reputation: 16
Originally Posted by ratbert90 View Post
4) change directories to /tmp/package
cd /tmp/package

5) type makepkg -l y -c n ../gaim.tgz
I wonder why makepkg doesn't have an option to specify the path; it's strange you have to cdů
thanks for the explanation though
Old 04-19-2013, 01:13 AM   #22
Registered: Jan 2011
Distribution: slackware_64 14.1
Posts: 639
Blog Entries: 2

Rep: Reputation: 100Reputation: 100
Originally Posted by lostboy View Post
What happens is instead of installing everything into
'D/creation/package' ,it just installs the program as normal.
Not every Makefile honours the DESTDIR option. You need to examine each source individually to see if any special tricks are involved.

It is also best to try and make the package as a normal user before doing so as root. The Makefile might make system changes (eg change rc.M) that you weren't expecting and that would make removing the package very difficult afterwards.

My blogs describe making packages and creating scripts to make packages. They also contain links to where there are more discussions about what to do if DESTDIR is not honoured.

In a lot of cases, src2pkg will do all the work of creating a package for you.

Last edited by psionl0; 04-19-2013 at 01:14 AM.
Old 04-19-2013, 01:22 AM   #23
Senior Member
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_10{.0|.1|.2}
Posts: 2,971

Rep: Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292
I think this thread qualifies as an exhumed corpse...
5 members found this post helpful.
Old 04-19-2013, 01:29 AM   #24
Registered: Jan 2011
Distribution: slackware_64 14.1
Posts: 639
Blog Entries: 2

Rep: Reputation: 100Reputation: 100
Originally Posted by astrogeek View Post
I think this thread qualifies as an exhumed corpse...
I didn't see the dates on this thread. Maybe there should be something like [NECRO] next to the title of old threads (in the same vein as [SOLVED]).
Old 04-19-2013, 05:01 AM   #25
LQ 5k Club
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,453
Blog Entries: 55

Rep: Reputation: Disabled
Nine year old thread? It's a record. The oldest I've seen previously was eight years old.
Old 04-19-2013, 05:29 AM   #26
LQ Newbie
Registered: Apr 2010
Posts: 8

Rep: Reputation: 1
Hey, cut the guy some slack. Archaeology is my name for it.

Last edited by boeringer; 04-19-2013 at 05:30 AM.
Old 04-19-2013, 05:33 AM   #27
Senior Member
Registered: Mar 2005
Location: Kentucky
Distribution: Slackware64-current
Posts: 1,408

Rep: Reputation: 188Reputation: 188
Reminds me of a Randy Travis song.

"I'm diggin' up bones - I'm diggin' up bones......Exhuming things that are better left alone..."
Old 04-20-2013, 04:45 AM   #28
Registered: Nov 2007
Posts: 312

Rep: Reputation: 46
The concept of necroposting doesn't apply to Slackware. It works more or less like in 1992.
3 members found this post helpful.
Old 04-20-2013, 06:06 PM   #29
Captain Pinkeye
Registered: Oct 2012
Location: The Czech Republic
Posts: 240

Rep: Reputation: 67
I wonder if the OP is still present at the forums. It might be interesting to hear about his experience with Linux since then.
Old 04-20-2013, 07:19 PM   #30
LQ Guru
Registered: Nov 2003
Location: Canada
Distribution: Slackware
Posts: 5,937

Rep: Reputation: 1866Reputation: 1866Reputation: 1866Reputation: 1866Reputation: 1866Reputation: 1866Reputation: 1866Reputation: 1866Reputation: 1866Reputation: 1866Reputation: 1866
Originally Posted by Captain Pinkeye View Post
I wonder if the OP is still present at the forums. It might be interesting to hear about his experience with Linux since then.
Especially since the OP is 100% valid today.

The fact that there are now more ways to automate it notwithstanding.


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make my own packages Wynand1 VectorLinux 2 03-10-2004 05:42 PM
slackware 9 what packages do i have to install to make my gcc work zeroversion Linux - Software 1 11-26-2003 11:19 AM
Newer Slackware Packages on older slackware version pengStudent Slackware 2 11-12-2003 12:47 PM
how to make RPM packages off a tarball? chupacabra Linux - General 2 10-15-2002 11:06 AM
Can I automate the tar, ./configure, make, and make install of about 50 packages? JoeLinux Linux - General 2 04-13-2002 03:35 AM

All times are GMT -5. The time now is 09:42 AM.

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