LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   command line software install (https://www.linuxquestions.org/questions/mandriva-30/command-line-software-install-324117/)

sog777 05-16-2005 03:36 PM

command line software install
 
What is the command to use when you want to download and install say mplayer or any program with dependencies?

it has been awhile since i used the command line.

Thanks
Joseph

salparadise 05-16-2005 03:46 PM

That depends on which distro you are using and which package managing system.
On Mandriva/mandrake the default is urpmi
urpmi program.name
On Debian/Ubuntu/Mepis it's apt-get
apt-get install package.name

And so on.

Let us know what distro you are using.

sog777 05-16-2005 04:39 PM

I am using Mandriva LE2005.

In Christ,

Joseph

sog777 05-16-2005 04:48 PM

tried urpmi. bash:command not found.

I know that i use this command to installlocal software but i am trying to download and install with dependencies other software. I used to use this command but it has been a while. i remember typing the command - software name or part of the name - then /auto and it would go out and search for it , give me a reply as to what it found and the various dependencies.
i have severial churches running it and i need a way to give them the easiest way to do it.
as for now i am teaching a brother how to use mandrake/mandriva so he wont have to but winXP.

In Christ,
Joseph

salparadise 05-16-2005 05:08 PM

Hmm,
S'been a while since I used Mandrake. You need to install rpmdrake (I think). You ought to be able to install it using the Install Software menu entry.
If not, find which CD it's on and install it with
rpm -ivh /path/to/&/name.of.rpm

I'm not 100% sure that rpmdrake provides urpmi.
Try
rpm --redhatprovides urpmi
or
rpm --whatprovides urpmi
if rpmdrake doesn't do the job.

godzero 05-16-2005 08:39 PM

sog:

In mandriva, urpmi, and the core 'drake utlilites are installed by default.
Before you can use them to download and install packages however, you should use easy urpmi ( http://easyurpmi.zarb.org/ ) to setup the database.
just pick the sites you want to use, copy the commands to your shell (as root), and wolla!

The 'drake utilities are a gui frontend for urpmi. The quickest way to launch the gui is the computer icon with the red badge/button/whatever on the taskbar. Click that, enter root password, click software, then choose install, update, or whatever.

Also at this point you can use urpmi to install packages. Go to a cli/command prompt, su root, then urpmi *pack-name* to install. urpmi.update to update, etc.

I'm guessing they will want to use the gui though (unless you're ssh-ing into the box).

NOTE: reference to "can't find urpmi": you have to su root before you can find urpmi, or anything else that requires root level access, it'll act like the file's not there.


All times are GMT -5. The time now is 02:00 PM.