LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   SuSE 9.1 -- Installing RPMs in YaST (https://www.linuxquestions.org/questions/linux-software-2/suse-9-1-installing-rpms-in-yast-187466/)

MrFubar 05-29-2004 06:54 PM

SuSE 9.1 -- Installing RPMs in YaST
 
I just got SuSE 9.1 installed, and I am having a problem installing RPM packages with yast. when i click on an rpm file in konqueror i can then select the option "install package with yast", but when i do that, yast only loads the packages available on the installation cd. i added my downloads folder as a directory in yast to check for when i install packages, but it still cant find the files. Is there something I'm doing wrong or forgetting to do when I try to install rpms? Any help would be greatly appreciated!

paulsm4 05-29-2004 11:15 PM

Actually, there should be several alternatives you can pick from:

1. You can probably install directly from YaST ... but frankly, I ran into
exactly the same problem you did, and I don't install RPMs often enough
that I ever bothered to figure it out.

2. You can use the "RPM" command directly from the command line.

3. You can go into the GUI file browser (konqueror) and double-click on
your RPM (or compressed RPM). The system should "do the right thing".

Good luck .. PSM

critch 05-29-2004 11:34 PM

I too ran into this problem with SuSE 9.1. At first I thought there was a good reason why YaST would not install... like the i585 rpm was not compatible with my AMD64 distro. But I became confused when even the i386's were kicked out.

Perhaps rpms which lack certain security features are not accepted? This is a great question for the SuSE forum (http://forums.suselinuxsupport.de/).

For these packages I simply install with "Kpackage" which is a default option that appears in Konqueror when you select the rpm with your right mouse button.

paulsm4 05-30-2004 12:04 AM

Try konqueror...
 
But again, please try double-clicking on your RPM with the GUI file explorer (konqueror). That should probably work for you.

Good luck .. PSM

critch 05-30-2004 12:17 AM

Paul,

Double-clicking will not work.

All double clicking does is bring up YaST (or more exactly the option to run YaST)... If you continue with YaST it decides that it likes the CD versions of the rpm better and uses them instead (without asking or telling you that it is doing so). This is in the original poster's message. :study:TFP.

Kpackage will let you do what you need without having to read the man pages for rpm.

paulsm4 05-30-2004 12:57 AM

With all due respect, what you're saying about double-clicking is *not* true. You *can* install from YasT - but I honestly don't recall the details of how to do it.

And it doesn't matter ...

... because your advice about KPackage is absolutely correct. That is indeed the solution to his problem.

One can run "kpackage" from the command line ("kpackage &"), or from the "Applications, system, configuration" KDE menu option.

Rudwardt 05-30-2004 05:22 AM

IIRC you need a file called packages or something alike, which lists the rpms and their contents. Yast will look for this file (check out your CDs, there should be one) in the directory with the rpms.
If you have installed SuSE-Extensions for Konqueror or Kpackage - I don't remember which, you should have an Option in your Konqueror contextmenu which generates this file.
You will also have a little script (sorry - again I don't remember the name - but you'll find it if you search a little) which generates packages files for directorys containing rpms.

But I agree that for the occasional rpm Kpackage is the easiest way.
__
Rud

critch 05-30-2004 09:24 AM

Paul,

I don't doubt that you *can* install from YaST. But the fact remains that the default configuration of YaST does not allow myself or MrFubar to view or install some RPMs. I'd like to know how to change these settings and maybe even learn why they are this way to begin with.

As for double clicking:
1). In a default SuSE install there is no such thing as a double click in Konqueror. I believe "single-click to open files (and folders)" is enabled.
2.) We all customize our interfaces differently... I set mine to use double-clicks instead because I like to select files with single click.

What double click behavior do you have that in SuSE 9.1 Konqueror does not bring up a page with a button which says "install with YaST"? This is effectively what MrFubar said in his first message.

I don't understand. How am I wrong about double-clicking?

ultrabeam16 05-30-2004 12:16 PM

It is easy to install with YaST... To do it you simply double-click the RPM file (in konqueror) and click "Install package with YaST". The only restriction is that the path where the package is stored CANNOT have ANY SPACES.

So if the package is stored at "~/rpm packages/mypackage-1.1.1.rpm" then YaST won't install it, it will just come up with the package search screen. If thats the case just move the RPM to a path with no spaces in it or just rename the "rpm packages" directory to have no spaces, eg. to "rpm_packages" so you have a path of "~/rpm_packages/mypackage-1.1.1.rpm".

Remember you can't have any spaces in the RPM package file name either.

Hope that helps :)

MrFubar 05-30-2004 03:46 PM

Thanks for the replies everyone! I actually ran YOU yesterday and noticed that there was a new patch that fixed problems with YaST installing RPMs, so it works fine now, but I think im still gonna check out kpackage anyways since it sounds a lot easier and more stable.

Also I did try moving an rpm to a folder with a space in the name (just out of curiosity) and you were right ultrabeam, it didnt like it. That may have been my problem before because I installed Firefox and it created a "My Downloads" folder in my home folder to save the files to. So just a heads up if anyone else installed firefox and is downloading files to Firefox's default download folder...

Thanks again for the replies everyone!


All times are GMT -5. The time now is 03:10 PM.