On September 1993 plus 3725 days Jason Williams wrote:

> Evening everyone.
>
> I just installed Mandrake 9.2 via FTP onto one of our servers to test
> out. We are looking for a replacement OS for our servers. One thing I
> wanted to learn is some of the Mandrake specific tools, specifically
> urpmi and msec.
>
> I was working with urpmi trying to learn its functions and have a
> couple of questions.
>
> Is there a way to list the packages that are available to download?

  "urpmq --list"  will give you a list of all available packages,
  without versions. "urpmq --fuzzy samba" will give you all packages
  that have samba in the name or description. I recommend reading the
  man pages for all the urpm* commands.
>
> For instance, I was playing around and typed:
>
> urpmi samba
>
> It gave me a list of dependencies, which is nice, but then said it was
> going to install samba 2.2.8a. Is there a way to grab the 3.0
> version?

  samba3 is only in contrib, so you need to have a contrib source
  configured to be able to install samba3. Due to it being in contrib,
  it's named in a distinct way, which in this case means adding the 3
  to the name of all packages. So to install samba3, you do "urpmi
  samba3" :)

> Secondly, is there a way with urpmi to see what versions of the
> software I have? I know I can with rpm -qa |grep <package>. Can you do
> this with urpmi?

  urpmq -r <packagename> will give you the release and version of the
  package. The problem with that output is that it'll give you release
  and version of available packages, it doesn't care or differentiate
  between installed and not installed. I'm not sure if there's a way
  of doing the same thing as "rpm -q package" with urpmi.

  Vox

-- 
Think of the Linux community as a niche economy isolated by its beliefs.  Kind
of like the Amish, except that our religion requires us to use _higher_
technology than everyone else.       -- Donald B. Marti Jr.

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to