LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-19-2004, 08:13 PM   #1
dubdub57
LQ Newbie
 
Registered: Apr 2004
Posts: 2

Rep: Reputation: 0
Some newbie tryin to get help Installing Programs on RedHat again. (help


Sorry if this has been asked but I am a total linux newbie, I just wanted to try to put some life in my old comp. I have RH, i think its 9, whatever the newest one is. I would like to know how to install normal linux programs. I was gonning to try to instal Mac on Linux but thats way to confusing for a newbie. So then I though I'd try to install Zinf 2.2.5 but after I unzipped it I couldn't figure it out.

-How can I install programs on Linux, programs just like Zinf music player, If its impossible somehow stop me now please, but If it's not could someone please get me a link or tell me a step by step easy guide on how to install a program.

Thanks alot.
 
Old 04-19-2004, 08:29 PM   #2
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Rep: Reputation: 45
if its a linux program you are good to go. as you are a newbie and using RedHat stick with .rpm files. those are specficaly designed for RH distro.

to install a rpm type the following:

rpm -ivh filename.rpm

or to upgrade an exsisting rpm:

rpm -Uvh filename.rpm

that simple.
 
Old 04-19-2004, 08:34 PM   #3
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
Yes this is asked all the time, you can try the search function above "Has this been asked before?"
That said, I'll get you started with some info on the basics of installing software in linux.

There are two basic ways of installing: from source, or with a binary.

Source:
You download a tar.gz or tar.bz2 most times. These are "tarred" and compressed archives.
For tar s you'd use
tar -xzvf <filename.tar.gz> to decompress and expand the archive.
tar -xjvf <filename.tar.bz2> for bz2s

From there, you CD to the directory that just got created, normally the name of the package and version.
You'll usually find documentation in the form of README and INSTALL within the source package there.
All the details of installation are given right there.
Most times, though, simply doing these commands will install the program:
Code:
./configure
make
make install
It may be necessary to become root before make install will go through, as it places files into /usr/bin or /usr/local/bin which are not writable by default to normal users.

Binaries:

You'll be using RPM and its packages. That's the red hat package manager. Learning RPM can be a task in itself, and you'll be experiencing what's called rpm or dependency hell.

In linux, most programs rely on standard (sometimes not so standard...) libraries which are shared among applications with common needs -- things that define what buttons look like, how to perform specific tasks, etc. This decreases the amount of code that needs to be distributed with packages themselves and helps to promote standards in programming, as well as decreasing total disk space used.

RPM checks to see if all of these libraries, or *dependencies*, required by the program you want to use are installed before it'll let you continue with the installation.
You're likely to see
RPM: Error -- package xyz is needed by Zinf-2.2.5.rpm
or some such.
Simply means that you need package xyz to be installed before Zinf will install and work.

Now, going and getting all these libraries yourself can be frustrating, time consuming, and sometimes impossible in cases where you have circular dependencies -- package A requires package B which requires package C which requires package A and so on.

Typical installation with rpm follows this sort of process
1: download .rpm file
2: rpm -i file.rpm

There are many options to rpm, some for upgrading, some for installing, some for removing, etc etc. There's also the --force command which will force a package to install even with unment dependencies. That's usually the way out of circular dependencies.

I suggest you read on and search more about how to use rpm before you start pulling your hair out

There's also a nifty tool called apt for RPM which downloads and installs a package along with all of its dependencies. I'd highly recommend that for you.

To find rpms needed by dependencies, or just programs you want:
www.rpmfind.net
fresrpms.net

Good luck and good learning toya

--Shade

Last edited by Shade; 04-19-2004 at 08:35 PM.
 
Old 04-19-2004, 08:45 PM   #4
rootboy
Member
 
Registered: Oct 2001
Distribution: Mint 15
Posts: 770

Rep: Reputation: 51
Ideally you would find an already compiled (built) copy in .rpm format that you could simply install using whatever tool Redhat uses (SuSE guy here).

Or obviously the command line...


Failing that, you would unpack the .tar.gz file into its own directory and do the ./configure, "make & make install" routine.

http://www.geocities.com/tipsforlinux/articles/27.html


Or, go here (rpmfind. Remeber that name) and get the appropriate .rpm package - one that supports RH9 would be best, but failing that choose the latest i586 or i386 version. This is the "ZbyName" page, scroll down until you see Zinf.

http://rpmfind.net/linux/RPM/ZByName.html


Here's what you probably really want:

http://rpmfind.net/linux/RPM/sourcef....5-1.i386.html


And since I sense that our discussion would not be complete without a quick tutorial on rpm, here goes

http://linuxnewbies.editthispage.com/tips/20000301
http://linuxnewbies.editthispage.com/tips/20000309

And:

http://www.getlinuxonline.com/articl...30305054906793


John
 
Old 04-20-2004, 06:07 PM   #5
dubdub57
LQ Newbie
 
Registered: Apr 2004
Posts: 2

Original Poster
Rep: Reputation: 0
ok, i got it down a little, but once I get a rpm that I want, try to install it, most of them i get these failed dependencies things, where it says it needs these certain files for it to work, so i go back to the rpm search and look up the program then saw what that program requires, If i try to search for the download that contains that file, I find one, but this one needs another file, so I search for that, and so...

Is there any rpm downloadable packeges that contain all other files that programs need to run or something like that.
 
Old 04-20-2004, 06:10 PM   #6
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Rep: Reputation: 45
that is part of the problem with the rpm system i have found too. just keep looking, or follow the steps above for installing from source code. this, from what i have heard, will reduce the problem with a lot of those dependancy fails.
 
  


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
Installing Programs in Mandrake (Newbie) gorann Mandriva 2 08-02-2004 06:48 AM
Help me, Ive been tryin for 8 hours to get this installed Phoenix_SPLX Mandriva 7 06-16-2004 12:32 AM
error tryin to dl rpmdrake juke Mandriva 0 03-08-2004 07:58 PM
help w\ installing programs on RedHat Linux 9 bshelton Linux - General 7 09-11-2003 01:52 PM
installing programs, no sound, and mandrake - am using redhat 8 johan the olive Linux - Newbie 1 02-11-2003 06:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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