LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-30-2004, 05:44 PM   #1
RollTRSForLfe
LQ Newbie
 
Registered: Jul 2004
Location: Twin Cities, Minnesota
Distribution: Slackware 10.0, SUSE 9.1
Posts: 7

Rep: Reputation: 0
Really bad n00b question... (How do you install software?)


OK, I know this is a dumb question, but I'm used to RPM-Based distros, like Red Hat and Fedora, and now I'm running Slackware 10.0. Can anyone provide a COMPLETE walk-through of how to compile and/or install software, kernel patches, etc.?
 
Old 08-30-2004, 05:52 PM   #2
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
there is a guide for installing from source here

http://www.linuxquestions.org/questi...threadid=45094

other options include, slackware pakages, designed to run w/slacks package manager

pkgtool

if you do happen to have the need to install an rpm, you'll need to use

rpm2tgz

man pkgtool
man rpm2tgz

for more info. hope that helps.
good luck.

<edit>sorry i missed this the first go round, here is a guide to compiling the kernel

http://www.linuxquestions.org/questi...threadid=73436

and here is a guide to patching a kernel

http://www.miredespa.com/wmaton/linu...h-HOWTO-2.html

again, sorry i missed it the first time. good luck.</edit>

Last edited by Peacedog; 08-30-2004 at 06:15 PM.
 
Old 08-30-2004, 05:54 PM   #3
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
kernel patches i don't know, im afraid to do it lol
but software: for regular tarballs (*.tar.gz) use this method (usually, read the README):

Code:
untar using this
$ tar -xzvf packagename.tar.gz
cd to the created directory
$ cd packagename
run the configure and make scripts
$ ./configure
$ make
go to root - you'll have to supply your password
$ su
now that you're root, install the package
# make install
and that's (usually) it
as for slackpacks (*.tgz) use this:
Code:
installpkg package.tgz
 
Old 08-30-2004, 06:09 PM   #4
geniarse
Member
 
Registered: May 2003
Location: UK
Distribution: Gentoo
Posts: 141

Rep: Reputation: 15
when running ./configure make sure you use
Code:
./configure --prefix=/usr
or installation may end up in wrong place.

Also I reccomend using checkinstall, this enables you to create a slack package and install that rather than using make install (hence making much easier to uninstall).
http://asic-linux.com.mx/~izto/checkinstall/
 
Old 08-30-2004, 06:19 PM   #5
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
For kernel patches, put the patch into your kernel source directory and then do:

patch -p1 < name_of_patch

and it should apply. Then recompile your kernel.
 
Old 08-31-2004, 07:36 AM   #6
mkaman
Member
 
Registered: Oct 2003
Location: spain
Distribution: fc2, fc3
Posts: 54

Rep: Reputation: 16
I don't recomend to use the configure/make/make isntall method because if you don't keep the build directory you wouldn't be able to uninstall it. That's so bad when upgrading. And you have to solve any dependencies by hand.
I have sometimes found myself dowloading ten differents tar.gz files to install one app.

Use, whenever you can, packaging utils that will keep your system running healthly and you will spend less headaches resolving dependencies and compiling issues by hand (it's called the dependency hell).

I use an apt version for redhat's rpms and it saves me for buying tons of painkillers
 
Old 08-31-2004, 08:30 AM   #7
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
Quote:
I don't recomend to use the configure/make/make isntall method because if you don't keep the build directory you wouldn't be able to uninstall it.
This is exactly why geniarse suggested using checkinstall. If you use configure/make/checkinstall, it will create a slackware package (or rpm or debian package) that you can then uninstall with the usual tools. No need to keep the build directory.
 
  


Reply


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
Install software question hitest Slackware 1 10-03-2005 12:21 AM
n00b question re: install from source as root Ricochet Linux - Newbie 4 01-11-2005 08:38 PM
n00b question - Installing software on a single user/stand alone tehkgi Linux - Software 1 09-30-2004 11:59 PM
newbie software install question jasonmantey Linux - Newbie 4 02-26-2004 09:52 PM
A question with install software ! iamthewind Linux - Software 4 10-23-2003 02:39 AM


All times are GMT -5. The time now is 10:02 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration