[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: using rpm



On Wed, 2003-04-30 at 22:27, Ian Dixon wrote:
> I'm having some issues understanding just how to install a package using
> RPM. I've been through man rpm, but that doesn't answer my question here
> which is; 
> 1. Do I download the package to my home directory and then install it
> from there, or do I have to download it to a particular directory? If a
> particular directory, which one?
> 2. Once I have downloaded the package what is the form of the command,
> is it as shown below?
> 
>  rpm -i foobar-1.0-1.i386.rpm
> 
> Thanks again for any help,
> 
> Ian

1. You can install an RPM from any directory of your choosing.  
2. rpm -Uvh <filename> should work for you most of the time.

>From the RPM manual page:
The general form of an rpm install command is 

       rpm -i [install-options] <package_file>+


This installs a new package. The general form of an rpm upgrade command
is

       rpm -U [install-options] <package_file>+


This upgrades or installs the package currently installed to the version
in the new RPM. This is the same as install, except all other version of
the package are removed from the system. 


Alvin





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]