LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-26-2005, 12:04 PM   #1
mikeymorgan
Member
 
Registered: Mar 2005
Location: Devon, England
Distribution: Slackware 10.1, Ubuntu 5.04
Posts: 109

Rep: Reputation: 15
Installing programs on linux


Im a total linux n00b, ive just started on slackware 9.1 recently (decided to jump in the deep pool), i managed to install it fine, but i dont know how to install programs yet!!!! could someone help me here!
 
Old 03-26-2005, 12:29 PM   #2
snakeo2
Member
 
Registered: Mar 2004
Location: Miami, Fl
Distribution: Red Hat 9/fedora core3/
Posts: 273

Rep: Reputation: 31
it all depends on what type of programs you are installing. if you are installing an RPM program,then you need to open a console and type the following the command

rpm -ivh packagename.rpm, where package name is the name of the program

if you are installing source programs such as .tar.gz and tar.bz2, then you need to type the following commands

tar xvzf packagename.tar.gz
./configure
make
su
type your password
make install

tar xvjf packagename.tar.bz2
./configure
make
su
password
make install

good luck
 
Old 03-26-2005, 12:35 PM   #3
JackSmith
Member
 
Registered: Feb 2005
Location: US
Distribution: Slackware
Posts: 30

Rep: Reputation: 15
as a very simple case, if you want to install something from source code,
say someprogram.tar.gz
you would just

tar -xvf someprogram.tar.gz

to extract the files, then cd to the directory they're in and type

./configure
make
make install

you probably want to run ./configure as root

but of course always read the documentation
 
Old 03-26-2005, 12:36 PM   #4
mikeymorgan
Member
 
Registered: Mar 2005
Location: Devon, England
Distribution: Slackware 10.1, Ubuntu 5.04
Posts: 109

Original Poster
Rep: Reputation: 15
hmm thats confusing enough, but i guess ill get used to it! erm also would it be the same if i wanted to install drivers?
 
Old 03-26-2005, 12:40 PM   #5
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
With slackware you can also use an excellent tool call installpkg. If you download a file that ends in .tar.gz, all you need to do is issue the command installpkg /path/to/*.tar.gz, and the installpkg will hook you up. The folks above me were both right, but .rpm isn't used for slack (unless you use a program to convert .rpm to .tar.gz), and I find installpkg simpler than going through an manually building from source.

Peace,
JimBass
 
Old 03-26-2005, 12:42 PM   #6
spurious
Member
 
Registered: Apr 2003
Location: Vancouver, BC
Distribution: Slackware, Ubuntu
Posts: 558

Rep: Reputation: 31
In the Linux universe, software programs are "packages", and installing software is "package management". Different distros use different package management schemes: apt-get (Debian), yum (RedHat *.rpm files), yast (Suse *.rpm files), urpmi (Mandrake *.rpm files), emerge (Gentoo), pacman (Arch)... Slackware uses a minimalist package management toolset, quarterbacked by the pkgtool utility; see the chapter on package management from the Slackware Manual. Also, see the "Simply Linux" book, included below in my .sig.

In general, if you want a stable system, then only install official packages from your original installation CDs or from a Slackware mirror (my favourite is http://www.slackware.at). You can find updated Slackware packages in the "slackware-current" tree at your favourite mirror site. You can also use a tool like slackpkg (on the Extras CD) or slapt-get to keep your system up-to-date with minimal effort.

If you are more daring, or if you are looking for an unofficial package, then you can find some more at http://www.linuxpackages.net. Beware: these are packages created by users, so there may be errors like library conflicts or dependency issues.

If you are even more daring, you can compile software from source. Slackware is probably the best distro out there for compiling from source. It's actually not that hard, but sometimes you will encounter frustrating errors with library conflicts, dependency issues, etc. There's even a LinuxQuestions tutorial on How to Compile from Source. Tip: if you use checkinstall (included on the Extras CD) instead of 'make install', you can actually create your own Slackware package for future use.
 
Old 03-27-2005, 04:43 AM   #7
mikeymorgan
Member
 
Registered: Mar 2005
Location: Devon, England
Distribution: Slackware 10.1, Ubuntu 5.04
Posts: 109

Original Poster
Rep: Reputation: 15
What distro do you think has the best + easiest package management?
 
Old 03-27-2005, 08:08 AM   #8
mhearn
LQ Guru
 
Registered: Nov 2002
Location: Durham, England
Distribution: Fedora Core 4
Posts: 1,565

Rep: Reputation: 47
Probably Ubuntu. Also look out for autopackages, they can install on any distro
 
Old 03-31-2005, 11:54 AM   #9
Malacandra
Member
 
Registered: Jul 2004
Posts: 44

Rep: Reputation: 15
Quote:
Originally posted by mikeymorgan
What distro do you think has the best + easiest package management?
Something debian based! I am currently using MEPIS 3.3

MEPIS has Synaptic which is a very easy package manager.

First off, it lists all the packages available for download.

Then, when you select one to download, it checks for dependencies and automatically downloads and installs them.

Of course, this is what Debian's apt-get does. The advantage with Synaptic is that it's a GUI so that new users don't have to use the command line.

I had Suse 9.1 for a bit but was completely befuddled. I tried lots of Suse RPMs, but they almost always had dependency conflicts. AFAIK, there wasn't any automatic resolution of these. (Unless I missed something, but it's too late now that I'm running MEPIS).
 
Old 03-31-2005, 02:04 PM   #10
mikeymorgan
Member
 
Registered: Mar 2005
Location: Devon, England
Distribution: Slackware 10.1, Ubuntu 5.04
Posts: 109

Original Poster
Rep: Reputation: 15
yeah, but isnt mephis a livecd?
 
Old 03-31-2005, 02:23 PM   #11
Malacandra
Member
 
Registered: Jul 2004
Posts: 44

Rep: Reputation: 15
Quote:
Originally posted by mikeymorgan
yeah, but isnt mephis a livecd?
It is until you install it!

Like I said, I had Suse installed. I tried MEPIS Live and it worked so well I just hit the install button. It actually installed into the same partition as Suse and kept my Home folders for me!

It's a great distro!

I even messed something up so that KDE wouldn't come up. Just booted to the console. So I put the MEPIS CD, booted Live and ran the repair utilities and ouila! back in business!
 
  


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
installing programs into linux?? cdrwizard Linux - Newbie 5 04-23-2005 01:30 PM
New to Linux, need help installing programs... jesse2k8 Linux - Software 5 07-18-2004 12:44 PM
Installing programs in linux leeman_s Slackware 5 08-02-2003 12:29 AM
installing linux programs warkrime Linux - Newbie 4 07-14-2003 02:24 AM
Installing programs on linux Kompressor Linux - Newbie 8 10-23-2002 12:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:59 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