LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-22-2006, 12:09 PM   #1
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
Question Another stupid-a$$ newbie "how do I install xyz" thread


Sorry guys, but I have looked around and I can't find an explanation of how to install stuff that comes in various flavors of gzips and tarballs.

I know that for Slackware packages we can use pkgtool that came with the installation disk. But what about stuff that people package for generic linux that we want to install on our systems?

How do I control where the stuff gets extracted to? It seems like when these packages are extracted they automatically go into different directories, how do I know they're in the right place?

How do I keep track of where all this stuff goes so I can remove it all cleanly if/when I want to?

How do I know which options to use on the various gzips and tarballs like .tar, .tar.gz, .tgz, tar.bz2, etc. (did I miss any?)

Thanks,
Rand
 
Old 02-22-2006, 12:21 PM   #2
pdw_hu
Member
 
Registered: Nov 2005
Location: Budapest, Hungary
Distribution: Slackware, Gentoo
Posts: 346

Rep: Reputation: Disabled
.tar.gz - tar zxvf (see the manpage for what each letter does, some aren't necessary)
.tar.bz2 - tar xjvf
.tar - tar xvf
.tgz - you can use zxvf, but these are usually packages

Usually it goes as:
./configure (don't forget to read INSTALL, README, and go throught ./configure --help so you can see what changes you can make)
make
make install

make install, puts them where they're supposed to belong usually somewhere inside /usr or /usr/local.

uninstall is done by 'make uninstall'. But you either need to keep the directory where you extracted it AND where you ran ./configure
OR you can just extract it to some directory later and run the configure script again. (Hope you understand the difference,
 
Old 02-22-2006, 12:59 PM   #3
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
You need to be root to do 'make install' or 'make uninstall' for most software since it involves either copying or deleting files from system dirs.

I would recommend doing './confgure' and 'make' as normal user tho or you may have permissions problems accessing some files when running software as user
 
Old 02-22-2006, 01:05 PM   #4
dom83
LQ Newbie
 
Registered: Jan 2006
Posts: 20

Rep: Reputation: 1
You can also try checkinstall instead of "make install". This is how I install self compiled software. checkinstall automatically creates a Slackware package and installs it. So you can uninstall it with removepkg or pkgtool.

You will find checkinstall in extra/
 
Old 02-22-2006, 01:33 PM   #5
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Original Poster
Rep: Reputation: 55
Quote:
Originally Posted by pdw_hu
.tar.gz - tar zxvf (see the manpage for what each letter does, some aren't necessary)
.tar.bz2 - tar xjvf
.tar - tar xvf
.tgz - you can use zxvf, but these are usually packages

Usually it goes as:
./configure (don't forget to read INSTALL, README, and go throught ./configure --help so you can see what changes you can make)
make
make install

make install, puts them where they're supposed to belong usually somewhere inside /usr or /usr/local.

uninstall is done by 'make uninstall'. But you either need to keep the directory where you extracted it AND where you ran ./configure
OR you can just extract it to some directory later and run the configure script again. (Hope you understand the difference,
Thanks for the options you mentioned. I guess I don't even know what to ask, but I was talking about executables rather than building from source. For example, I tried to install ROX, but it didn't work. I was able to extract it ok (I think) but I didn't get to choose which directories it went into. And then when I wanted to delete it, I had to find all the pieces and delete them all, I didn't know how to execute one command and delete all the modules.

When you say that "make install puts them where they're supposed to be" are you saying that when you install stuff you don't have any choice? The extraction just builds whatever it wants? Or maybe this was during ./configure where you specified which directories it went into???

I didn't understand your last comments about needing to keep the directory when it was extracted.

Thanks,
Rand
 
Old 02-22-2006, 01:34 PM   #6
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Original Poster
Rep: Reputation: 55
Quote:
Originally Posted by dive
You need to be root to do 'make install' or 'make uninstall' for most software since it involves either copying or deleting files from system dirs.

I would recommend doing './confgure' and 'make' as normal user tho or you may have permissions problems accessing some files when running software as user
I don't understand the difference between make and make install. Are you talking about doing a compilation as a user and then installing the binaries as root?

Thanks,
Rand
 
Old 02-22-2006, 01:36 PM   #7
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Original Poster
Rep: Reputation: 55
Quote:
Originally Posted by dom83
You can also try checkinstall instead of "make install". This is how I install self compiled software. checkinstall automatically creates a Slackware package and installs it. So you can uninstall it with removepkg or pkgtool.

You will find checkinstall in extra/
This sounds very cool but I don't have an /extra directory, at least not at top level. What is the path to this? And I couldn't find checkinstall with whereis.

I also don't understand what you mean about self compiled software.

Thanks,
Rand
 
Old 02-22-2006, 02:33 PM   #8
lestoil
Member
 
Registered: Apr 2004
Location: new york
Distribution: win2k,ubuntu,sw13,arch,centos5.3
Posts: 815

Rep: Reputation: 31
Handy references are http://www.slackersbible.org/book/ package mgt section and similar section in Slackware Linux(Slackware Linux essentials) by Alan Hicks and others available at linuxpackages documents section for an on-line version. Those are good start-off points as well the man refs.above. Happy slacking
 
Old 02-22-2006, 02:56 PM   #9
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Original Poster
Rep: Reputation: 55
I didn't find what I was looking for in those books, but I'll go back and look again. In the meantime I used what I read in this thread and I was able to compile and install something. It will be interesting to see if I can also get rid of it all!

Thanks,
Rand
 
Old 02-22-2006, 02:58 PM   #10
pdw_hu
Member
 
Registered: Nov 2005
Location: Budapest, Hungary
Distribution: Slackware, Gentoo
Posts: 346

Rep: Reputation: Disabled
'make' compiles and 'make install' installs it (basically copies it).

as for installation directories, ./configure --help lists you some command line options (--help is one of them for ex.) which you can override the defaults.

executables can be put whereever you want basically and ran by ./file

as for the uninstall issue:
let's say you extracted something, did ./configure,make and make install. then deleted that directory.
after a while you want to uninstall that program.
you can either search for all the files for that program (but then it's easy to miss something)
or you can just extract the source again, run ./configure then do make uninstall (as root, sorry i didnt mention that before). or you could just backup the first directory, but that takes up lots of place.
 
Old 02-22-2006, 03:29 PM   #11
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
Quote:
Originally Posted by Randux
This sounds very cool but I don't have an /extra directory, at least not at top level. What is the path to this? And I couldn't find checkinstall with whereis.

I also don't understand what you mean about self compiled software.

Thanks,
Rand

/Extra is on one of the CDs (sorry I forget which) but you can download it here:
http://slackware.it/en/pb/browse.php...a/checkinstall
 
Old 02-22-2006, 03:41 PM   #12
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Original Poster
Rep: Reputation: 55
Thanks guys, you are great. I can't claim to understand it completely, but after downloading the source for cronky and compiling and installing it, I am further than I was before.

I have all the CDs...so I'll look for it there on the /extra directory.

Rand
 
Old 03-19-2006, 09:00 PM   #13
DdOs
LQ Newbie
 
Registered: Feb 2006
Location: Sydney, Australia
Distribution: Slackware 10.2
Posts: 21

Rep: Reputation: 15
Question How to install a software to make it available for Every Users on Current System??

Hi all...

I am a Newbie too... this topic was very helpful for me.. now i want to know:

Is there any way or any installation option to add the shortcut of the installed program to Application Menu??

I've installed OPEN OFFICE, but i don't where it is installed!!

I want to install any software and i want the software to be available for ALL Users on my SYSTEM, What i need to do??

Note: I am using Slackware Linux 10.2 with Dropline Gnome 2.12.2

Thank You all

DdOs
 
Old 03-19-2006, 09:29 PM   #14
drumz
Member
 
Registered: Apr 2005
Location: Oklahoma, USA
Distribution: Slackware
Posts: 906

Rep: Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697
Usually executables are put in /usr/bin or /usr/local/bin. If the program is put in /opt then then it's /opt/some/dir/bin (for example: /opt/kde/bin).

If the location is in your PATH (try "echo $PATH"), then you can just type the name of the program. If not, you must give the full path (/opt/kde/bin/kruler, for example). I manually add stuff to the K menu (or in your case it would be the Gnome menu) for programs I want to run (like Neverball).
 
Old 03-19-2006, 09:43 PM   #15
j79zlr
Member
 
Registered: Dec 2005
Location: Chicago
Distribution: Gentoo, Slackware, and FreeBSD
Posts: 38

Rep: Reputation: 15
Quote:
Originally Posted by DdOs
Hi all...

I am a Newbie too... this topic was very helpful for me.. now i want to know:

Is there any way or any installation option to add the shortcut of the installed program to Application Menu??

I've installed OPEN OFFICE, but i don't where it is installed!!

I want to install any software and i want the software to be available for ALL Users on my SYSTEM, What i need to do??

Note: I am using Slackware Linux 10.2 with Dropline Gnome 2.12.2

Thank You all

DdOs
http://www.linuxpackages.net/pkg_details.php?id=8819

That is the OpenOffice Gnome-Integration package, it will install the proper menu entries.

You can right click the gnome footprint and choose "Edit Menus" as well.
 
  


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
newbie question: whats the difference between "su root", "su" and "su -&quo mojarron Slackware 9 12-07-2009 04:08 PM
Can't install "glibmm" library. "configure" script can't find "sigc++-2.0&q kornerr Linux - General 4 05-10-2005 02:32 PM
[thread control suggestion] add a "solved" button that the thread starter can click atom LQ Suggestions & Feedback 3 03-24-2005 11:55 AM
Take all posts from "Website Suggestions & Feedback" out of the "0 Reply Thread&q t3gah LQ Suggestions & Feedback 7 03-21-2005 07:27 PM
Java error "Exception in thread "main" java.lang.StackOverflowError" nro Programming 1 09-04-2004 03:47 AM

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

All times are GMT -5. The time now is 08:31 AM.

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