LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Prefer tgz or source file? (https://www.linuxquestions.org/questions/slackware-14/prefer-tgz-or-source-file-388863/)

Swift&Smart 12-03-2005 05:49 AM

Prefer tgz or source file?
 
Hello,everyone. :)

I am wondering what do you guys prefer when installing software. Slackware package or source code from the official website? I would like to know because sometimes if you want some specific functions you have to compile from the source code with specific parameters which Slackware package may not be provided.

For example, I just can't figure out how to install MPlayer from Slackware package. I can't get it done.

If you guys have any ideas, please drop me a line. :D

XavierP 12-03-2005 10:33 AM

MPlayer compiles and works best, in my experience, if you do it all from source.

raska 12-03-2005 10:52 AM

I prefer to install the first time from source, then if the package works fine and I like it as to keep it around for further installations, I'd do my own TGZ with makepkg.

Okie 12-03-2005 11:38 AM

if Pat V. does not make it as part of the distro i will compile from source, so my install of slacware is about half pat v. and half compiled source...

Xian 12-03-2005 12:55 PM

Quote:

Originally Posted by Okie
if Pat V. does not make it as part of the distro i will compile from source, so my install of slacware is about half pat v. and half compiled source...

How do you determine which pkgs to upgrade and when to do so?
In short, how do you keep track of this setup?

mdarby 12-03-2005 02:19 PM

I nearly always compile from source. It's much easier to find the source, and compiling gives you 100% control.

Xian 12-03-2005 02:38 PM

Quote:

Originally Posted by mdarby
I nearly always compile from source. It's much easier to find the source, and compiling gives you 100% control.

I like the idea, but I'm hesitant to do more without having a good example of how to keep track of the versions, dependencies, and what needs to be upgraded with which packages.

For example, let's say that I install foo_1 which depended upon foo_2 and foo_3, and these were all installed from source. Not so hard to remember unless, like Okie, there are a significant number of these on your system. How does one best track all of these and thereby keep the system properly maintained?

mdarby 12-03-2005 02:44 PM

Quote:

Originally Posted by Xian
How does one best track all of these and thereby keep the system properly maintained?

checkinstall
http://asic-linux.com.mx/~izto/checkinstall/

It's the first thing I install after the base install is complete.

As for dependencies, I see what ./configure tells me. If it needs something, I install it.

MS3FGX 12-03-2005 03:28 PM

I use checkinstall as well, helps with the upgrading at the very least.

But there is really no way to make sure everything is updated beyond keeping an eye on the websites for the software you have installed.

As for dependancies, you just note anything the software complains about while attempting to compile, and install that as well.

Xian 12-03-2005 03:29 PM

Quote:

Originally Posted by mdarby
checkinstall
http://asic-linux.com.mx/~izto/checkinstall/

It's the first thing I install after the base install is complete.

Sure, I've used that tool, and managing packages based on that method I certainly understand. I was just under the impression that the other posters I quoted were strictly installing from source, with no additional utilities that aided with managing the system packages. And if this were the case then I'd be interested in what method they do use for this function.

Okie 12-03-2005 03:57 PM

Quote:

Originally Posted by Xian
How do you determine which pkgs to upgrade and when to do so?
In short, how do you keep track of this setup?

when the author of the sourcode comes out with a new release i just delete the old installed package and compile the new one, a few times a week i just visit a few websites and take a quick peek at http://freshmeat.net/ once or twice a day,

the base system & Xorg is slackware - slapt-get updates that part,

Xian 12-03-2005 04:05 PM

Quote:

Originally Posted by Okie
when the author of the sourcode comes out with a new release i just delete the old installed package and compile the new one...

You then keep all the installed & compiled package folders on your system in case you want to go back and do a 'make uninstall'? And then afterwards remove and replace with the updated compilations?

Okie 12-03-2005 04:23 PM

Xian, make uninstall is something i never used, i usually just delete the executable from /usr/bin and check for any libs in /usr/lib and check for any directories in /usr/include & /usr/share

one other thing, this is just my personal home/office PC used just as a desktop/workstation and nothing running on it is absolutly crucial so if i mess it up i am only out a little time having to fix a few things or at worst having to reinstall the system, not like lives or business' are dependant on it...

i learned to be carefull about what i do so i do not spend all my time fixing things i broke, so if your carefull about what you do - you wont waste all your time fixing things that way you have more time to enjoy your PC productively...

liquidtenmilion 12-03-2005 05:53 PM

I usually always use source, and then make a package for it. I currently have 100+mb of packages in ~/packages.

To do this all that is usually needed is.

1. Read documentation in tarball.
2. ./configure --help to find out all the additional options.
3. export CFLAGS="-O2 -march=i486 -mcpu=i686 -pipe";export CXXFLAGS="-O2 -march=i486 -mcpu=i686 -pipe" (editing them to whatever i need for that particular package.
4. ./configure --prefix=/usr --whatever-other-options
5. make
6 su
7 make DESTDIR=/work install
8. cd /work and then strip binaries, move/remove unnecessary/misplaced files, mkdir install, then add a slack-desc.
9. cd back into /work and do "makepkg programname-version-i686-1asw.tgz

Then i have a nice package that i can later remove/upgrade if needed. I can then do an rm -rf /work and i can remove the source code.

Swift&Smart 12-04-2005 04:38 AM

liquidtenmilion and all folks have given invaluable suggestions to me, thanks a lot. :)

liquidtenmilion,I personally prefer your option to make a slackware package because it's clear and intact if I want to remove/upgrade the package.However, can you point me to any website which you learned from regarding this package creation? :)

Okie, I have similar experience as you after compiled the source file if I want to delete them. But don't you think delete these files are difficult if you installed them from source files?Because it is not Windows,files are all kept in the Prgram Files by default. That's why I would like to ask the caption questions to see how you guys to deal with the package management. I do appreciate the advantages of using source files. However, I am more appreciative when I can manage my package systematically.

Thanks all you guys giving me many many good suggestions.

That's the new icon. :twocents:


All times are GMT -5. The time now is 06:25 PM.