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 01-30-2005, 08:27 AM   #1
ginda
Member
 
Registered: Mar 2004
Distribution: SUSE8.2, 9.2, Knoppix
Posts: 323

Rep: Reputation: 31
Installation of apps "the basics"


Im using suse 8.2 for a while now on & off...and have managed to do various things on it i.e. samba, mounting, and installing apps but i havent really fully understood the different ways of installing applications and the types of them.

For example: whats the difference between src.rpms & rpms, tar files and where they get installed to where should you run them, do they have to be run from a exact location? Im abit confused, bless the person who answers my awkward questions
 
Old 01-30-2005, 08:33 AM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
I'll take a stab at it.

RPM - Precompiled binary form of the program along with header information telling the RPM program how to install it.

SRC RPM - It's actually an RPM of the source code for the program: the rpm manager must compile it to install it.

TAR - A "tarball" (*.tar.gz, *.tgz, *.tar.bz2) is just a collection of files. Generally, if you download a tarball, it's the source, which you must then compile and install. Usually, all you need to do is:
Code:
tar zxf progname.tar.gz
cd progname
./configure
make
make test
make install
Not all programs use this format, but so many do. Make test is optional and not supported in all makefiles. The "z" in the tar command tells it to uncompress with gzip, substitute with "j" for .tar.bz2 and "Z" for .tar.Z.

I hope this has answered some of your questions.
 
Old 01-30-2005, 08:45 AM   #3
ginda
Member
 
Registered: Mar 2004
Distribution: SUSE8.2, 9.2, Knoppix
Posts: 323

Original Poster
Rep: Reputation: 31
Great stuff....one quick question...how do i know where the programs will be installed either of the file types, as recently i downloaded amsn, it was the src.rpm all i did was

rpm -ivh amsn.src.rpm

I looked for the program everywhere and evenually found it under the srpms folder under the suse linux 386 folder, in there were just a bunch of tar files???i think
 
Old 01-30-2005, 09:01 AM   #4
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Well, honestly, I'm not sure though I'm sure someone else will help you. I've never really worked with an RPM based distribution My guess is all source rpms end up in that directory and binary rpms end up in standard locations (libs in /lib, bins in /usr/bin, etc.)
 
Old 01-30-2005, 09:23 AM   #5
ginda
Member
 
Registered: Mar 2004
Distribution: SUSE8.2, 9.2, Knoppix
Posts: 323

Original Poster
Rep: Reputation: 31
Ok no probs...but for example if i downloaded a source tar file of an install do i have to uncompress it in the shell commands and can i compile it anywhere i prefer on the system?
 
Old 01-30-2005, 09:32 AM   #6
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
*.src.rpm end up in /usr/src/packages. This is devided into several subfolders. The structure of these folders may become evident if you study the process of building rpm packages (see man rpm ). After compiling the package, the binary rpm can be found in /usr/src/packages/RPMS.

But to make matir's point clear: you cannot install a *.src.rpm the usual way with Yast! It will not appear as 'installed' in the rpm database. Always try to get *.ix86.rpm packages (they make life much easier )
 
Old 01-30-2005, 09:36 AM   #7
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
RPMS are packaged as binary rpms (eg package-1.0.0-1.i386.rpm) and source rpms (eg package-1.0.0-1.srpm). What you installed is a source rpm thats supposed to be rebuilt into an rpm. You need to install only binary rpms unless you need to recompile the source rpm for a specific reason.
 
Old 01-30-2005, 10:50 AM   #8
ginda
Member
 
Registered: Mar 2004
Distribution: SUSE8.2, 9.2, Knoppix
Posts: 323

Original Poster
Rep: Reputation: 31
Thanks alot guys....
 
  


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
Telling people to use "Google," to "RTFM," or "Use the search feature" Ausar General 77 03-21-2010 11:26 AM
"Xlib: extension "XFree86-DRI" missing on display ":0.0"." zaps Linux - Games 9 05-14-2007 03:07 PM
Error launching gnome apps as root: " Failed to contact configuration server" Kropotkin Fedora 1 12-16-2005 11:11 AM
Installation of "Gdesklets" on "Breezy" 5.10 Blue Jacket Ubuntu 3 11-08-2005 08:48 AM
Installing Oracle Apps 11i in Redhat 9 - Linux "bad interpreter" error msoares Linux - Newbie 4 07-14-2004 09:45 PM

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

All times are GMT -5. The time now is 11:36 PM.

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