LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Common Problem with all RPM installs (https://www.linuxquestions.org/questions/linux-newbie-8/common-problem-with-all-rpm-installs-367682/)

Airhead315 09-27-2005 11:21 PM

Common Problem with all RPM installs
 
I recently decided to start using linux on a second partition just for the fun of it. So far things havnt been too complicated. However im running into a problem which has me stumped. I run into a roadblock everytime I have to manually use the terminal to install an rpm. Basically I invoke the rpm with the following command:
rpm -Uvh <filename>.rpm

It does its thing, complains if anythings missing...once I resolve the missing dependencies I do it again and it acts normally, gives a 100% status but it never seems to be successful. For instance, if I try to invoke the rpm using the "Install Packages" feature of Fedora 4 it tells me that source package rpms cannot be installed this way...Makes sense. But when I use the command line like the one above, it appears to work fine, but if I try to load anothr rpm(thats not a src rpm) using the "Install Packages" feature, it still says that it cannot find the needed dependancy. The world would be a much simpler place if all programs had an install rpm :-P As you can see Im new to all this, the basic question I guess is how do you install source rpms correctly? I

tkedwards 09-27-2005 11:41 PM

If you're using Fedora use yum to install stuff - it resolves the depedencies for you. See here: http://www.fedorafaq.org/#getsoftware

Quote:

As you can see Im new to all this, the basic question I guess is how do you install source rpms correctly? I
Generally you'd do rpm -i for a source RPM but rpm -Uvh will also work fine. Your source RPMs will be in /usr/src/redhat (or /usr/src/RPM) if you installed them as root or ~/rpm if you installed them as your user. Have a look at the rpmbuild command (man rpmbuild) to see how to build a source RPM. Generally though its just rpmbuild -ba my.src.rpm. Mandriva has a good RPM Howto (http://qa.mandriva.com/twiki/bin/view/Main/RpmHowTo) which should get you started with packaging software, if that's what you want to do. If you're just interested in installing stuff then see above about yum.

Airhead315 09-28-2005 12:15 AM

Quick question about yum. I followed that tutorial and successfully installed xmms mp3 player which leads to two questions:

1.) I used the "yum list available" command and it threw out a huge list of all the available installs, this is great, but I can only see the last 60 or so in the terminal window...is there a way to see them all?

2.) I notice that xmms-mp3 was not listed under the list of installs...how did the person doing this tutorial know to invoke "yum install xmms-mp3" when xmms-mp3 is not in the list? am I missing something?

tkedwards 09-28-2005 12:28 AM

Quote:

1.) I used the "yum list available" command and it threw out a huge list of all the available installs, this is great, but I can only see the last 60 or so in the terminal window...is there a way to see them all?
That depends on what type of terminal window you have opened - a GNOME or KDE (konsole) terminal should have normal scroll bars just like any GUI application, at a non-gui console screen do shift+Page Up.

Quote:

2.) I notice that xmms-mp3 was not listed under the list of installs...how did the person doing this tutorial know to invoke "yum install xmms-mp3" when xmms-mp3 is not in the list? am I missing something?
If you setup your yum.conf with those extra repositories it should be listed. Where did you get xmms-mp3 from?

Airhead315 09-28-2005 12:34 AM

Quote:

Originally posted by tkedwards
If you setup your yum.conf with those extra repositories it should be listed. Where did you get xmms-mp3 from?
Step 12 of the yum tutorial you had in your original post... It worked, im using it right now, but I dont see it listed...I see the skin one, and the rest for xmms, but none that is xmms-mp3

Airhead315 09-28-2005 12:39 AM

Also, im using Fedora 4, so I believe its the Gnome Terminal window, it had scroll bars, but it will only allow you to scroll up to about the "s" 's in the list...Shift-PageUp doesnt go any higher either :-/ also, rpmbuild is not a recognized command on my system..."man rpmbuild" yeilds no response...

tkedwards 09-28-2005 04:37 AM

Quote:

Step 12 of the yum tutorial you had in your original post... It worked, im using it right now, but I dont see it listed
Oh ok. Well if you installed it with 'yum install' then it must be in one of the repos you setup. I'm not sure why it wouldn't be listed.

Quote:

so I believe its the Gnome Terminal window, it had scroll bars, but it will only allow you to scroll up to about the "s" 's in the list
By default it only scrolls 500 lines I think. Goto Edit->Current Profile then on the 'Scrolling' tab you can configure that number. You can also pipe the output to more like this:
Code:

yum list available | more
and scroll through it bit by bit. You could even send the output to a file and then open that file in a text editor and go through it:
Code:

yum list available > /tmp/yumlist
. Linux is very flexible :)

Quote:

rpmbuild is not a recognized command on my system..."man rpmbuild"
Code:

yum install rpm-build
or possibly
Code:

yum install rpmbuild
or if that doesn't work
Code:

yum search rpmbuild


All times are GMT -5. The time now is 01:22 AM.