How to install mercurial on openSUSE

opensusepackage-management

I need to install mercurial on my opensuse but I couldn't find the rpm so I just download mercurial.rpm and wanted to install it by using:

sudo zypper ...

but it said to need python 2.6 so I downloaded python 2.6.0 and did the same but it said that needs the previous versions and the process failed.

Best Answer

Check if you have yum installed by typing yum --version in your terminal prompt. If you get something with a version number then you have it installed.

sudo yum install python - should install python.

Likewise, sudo yum install mercurial - should install mercurial.

EDIT-1: In case if you are not comfortable with command line method, open up the package manager and search for both of them and install it that way. My guess is you don't have to download the rpm and install python or mercurial. It should be available with the distro package manager itself.

EDIT-2: If you want to search for a package use - yum search <insert-package-name-here>. If you don't know the full package name you can just use a part of the package name.

Other command is yum whatprovides <package-name>. For more commands refer here and here.

Related Question