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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-30-2005, 08:27 AM
|
#1
|
Member
Registered: Mar 2004
Distribution: SUSE8.2, 9.2, Knoppix
Posts: 323
Rep:
|
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
|
|
|
01-30-2005, 08:33 AM
|
#2
|
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507
Rep:
|
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.
|
|
|
01-30-2005, 08:45 AM
|
#3
|
Member
Registered: Mar 2004
Distribution: SUSE8.2, 9.2, Knoppix
Posts: 323
Original Poster
Rep:
|
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
|
|
|
01-30-2005, 09:01 AM
|
#4
|
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507
Rep:
|
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.)
|
|
|
01-30-2005, 09:23 AM
|
#5
|
Member
Registered: Mar 2004
Distribution: SUSE8.2, 9.2, Knoppix
Posts: 323
Original Poster
Rep:
|
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?
|
|
|
01-30-2005, 09:32 AM
|
#6
|
Senior Member
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517
Rep:
|
*.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 )
|
|
|
01-30-2005, 09:36 AM
|
#7
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
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.
|
|
|
01-30-2005, 10:50 AM
|
#8
|
Member
Registered: Mar 2004
Distribution: SUSE8.2, 9.2, Knoppix
Posts: 323
Original Poster
Rep:
|
Thanks alot guys....
|
|
|
All times are GMT -5. The time now is 11:36 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|