Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Possible Duplicate:
How do I install and manage RPMs in Ubuntu

I can't open softeware of git-0.99.1.rpm. So , I need the rpm command to install git-0.99.1.rpm. Is there any supply for the rpm command in Ubuntu linux? How can I install rpm or my git-0.99.1.rpm package?

share|improve this question

migrated from stackoverflow.com Mar 17 '11 at 13:57

This question came from our site for professional and enthusiast programmers.

marked as duplicate by Marco Ceppi Apr 16 '11 at 23:01

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
You should probably change this question to "How do I install git?" instead. –  Jorge Castro Mar 17 '11 at 15:11

3 Answers 3

Here is how you can install RPM packages on Ubuntu:

Convert RPM package to *.deb using alien and install it afterwards, i.e.

  • Install alien (and deps), its available in Debian, Ubuntu repository:

sudo apt-get install alien dpkg-dev debhelper build-essential

  • Convert rpm package using command

sudo alien -k --scripts some-rpm-package.rpm

  • Install it using this command

sudo dpkg -i some-rpm-package.deb

share|improve this answer
    
Convert rpm , I use “sudo alien -k some-rpm-package.rpm” but , the computer said that "alien command not found"! –  Angela Mar 17 '11 at 10:29
    
@Angela: Did you install alien first? If yes then please make sure alien binary is in your path or use full path to alien in sudo alien command. –  anubhava Mar 17 '11 at 12:23

You don't use rpms on Ubuntu -- you use apt. Just type

sudo apt-get install git

and you'll be all set!

share|improve this answer
    
I am sorry that my computer said: –  Angela Mar 17 '11 at 10:24
    
Packate git is not available. And I don't know why?? Maybe it's path, maybe it's ownship. Anyway, I didn't find way out. –  Angela Mar 17 '11 at 10:26

Go here, https://launchpad.net/~git-core/+archive/ppa, and Read about installing. You just have to add the PPA to your system and you can install with apt. If you really can't figure it out, you can download the .deb file for your architecture from the bottom of that same page and install with sudo dpkg -i [filename] anubhava did mention that you can use alien to convert .rpm files to .deb, but you don't want to do this--at least not for git when there are .debs available and it's in a repo. alien is (for me) a last resort (after trying to compile from source).

share|improve this answer