Find the answer to your Linux question:
Results 1 to 6 of 6
Whats the best way to know if a certain packages is installed on your system? I ask as I want to install firefox and there are some pre requisits. These ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2005
    Posts
    41

    Knowing whats installled


    Whats the best way to know if a certain packages is installed on your system?

    I ask as I want to install firefox and there are some pre requisits. These are:

    * glibc 2.3.2 or higher
    * XFree86-3.3.6 or higher
    * gtk+2.0 or higher
    * fontconfig (also known as xft)
    * libstdc++5

    So how do I know if these are on my system???

    Thanks

  2. #2
    Linux Guru AlexK's Avatar
    Join Date
    Feb 2005
    Location
    Earth
    Posts
    3,379
    the easiest way to install a package and all its dependancies is to use the urpmi command. As root, type into a terminal
    Code:
    urpmi firefox
    and the system will look p the nearest ftp server for firefox, download it and any other dependancy. It will then proceed to install all those dependancies along with firefox. If the dependancies are already on your system, it will not download them.

    Note: I am not sure that the package will be named firefox. if it is not, the urpmi command will list suitable packages which contain the firefox name. Select one of these packages to install.

  3. #3
    Just Joined!
    Join Date
    Mar 2005
    Posts
    41
    Cool.

    I knew of the urpmi command (never tried) but didnt realise it would pick up on generic names etc and from that download all dependencies...

    I shall try tonight and see what happens

    BTW - Is there a way to see if a certain package is installed? I see that there is a urpmq command but does this need to know precise package names (or is this clever again and list everything with the generic name)? Not at my linux machine so cant test.

    Thanks

  4. #4
    Linux Guru AlexK's Avatar
    Join Date
    Feb 2005
    Location
    Earth
    Posts
    3,379
    I don't know if there is a specific command to see if a package is installed. However, when i installed python using the urpmi command, it said that it was already installed. so, you could try urpmi glibc2.3.2 and see if it is installed.

    If the prequesites are not on your system, the urpmi command will install it for you. If it is there, it will use what is there.

    Hope this helps.

  5. #5
    Linux Guru bigtomrodney's Avatar
    Join Date
    Nov 2004
    Location
    Ireland
    Posts
    6,133
    Sure you can go into rpmdrake - the package removal version from the configuration menu or MCC. Just search for thise names (best without the versions). Cos you can't uninstall a program without installing it... :P

  6. #6
    Just Joined!
    Join Date
    Mar 2005
    Posts
    41
    Thanks again. Nice handy tips

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •