20

I want to install sqldeveloper from Oracle on Arch Linux. The only Linux download option is RPM. I am not interested in using arch repositories to install sqldeveloper. I can only use what the vendor provides.

  • 6
    The package in the AUR is "what the vendor" provides: that is how packaging on Arch works. If you are going to use Arch, you should familiarize yourself with how pacman, makepkg and PKGBUILDs work. – jasonwryan Feb 14 '14 at 19:03
  • 1
    "The package in the AUR is "what the vendor" provides" Lol... no. People want to use software that isn't in the AUR, believe it or not. I can't install Java 1.6.65, 64bit from Oracle/Sun ...? Right, because Arch is a rolling release, and doesn't keep previous versions for starters. – Zombies Aug 27 '14 at 16:01
22

Jasonwryan (as per usual) was right on the mark with his initial comment.

Arch's packages are supposed to be as close to "vanilla" as possible. Now, while you could use rpmextract or alien, there isn't really a good reason to do so. What you should do is create a PKGBUILD that uses the RPM as the source file and then installs everything that's needed where it should be in the package() function. If you are unsure of how to do this, take a look at some packages on the ArchLinux User Repository; there are plenty that do similar things.

Now, since bsdtar (the default extractor used on source files by makepkg) supports extracting RPMs without issue, there is no reason to use rpmextract—it adds a makedependency without adding any real functionality.


Some related reading from the wiki:

  • 1
    It looks like the latest rpmextract on Arch Linux is just a wrapper around bsdtar. – sherrellbc Oct 4 '17 at 11:46
  • 7
    The question title states: install RPM file on Arch linux, and all i've found was just the usual arch elitist answers "check the manual"/"check those resources". This answer basically tells the user where to search his own answer instead of giving simple easy-to-follow instructions. While this is canon on arch fora, it is against common practice on SO. I guess the user could've asked the question on the arch forum if he wanted this kind of answer. SO etiquette requires verbatim citing of parts of linked resources that apply to the particular answer. – brett Apr 17 '18 at 6:17
6

The Arch-specific tool is rpmextract. https://www.archlinux.org/packages/extra/any/rpmextract/

2

There's a tool called alien that can (attempt) to build a deb from the rpm. Sometimes it works; other times it makes a mess... it's an imperfect process at best. alien can be used to simply unpack the rpm into a deb format directory (i.e. do everything but build the deb) where you can manually install (copy) everything.

The other option is to install the rpm tools under arch and force installation of the rpm. This will get it installed, but not being a native rpm distro, it will have no knowledge of the deb packages on the system. Meeting the dependencies will, thus, be up to you. Also, any rc scripts it installs will have to be converted to systemd.

  • I see. I think some RPM files just have packaged binaries. For sqldeveloper, all I had to do was install rpmextract. It created a directory structure of /opt/sqldeveloer/...[prebuilt and ready to run.. ...But you're saying that for rpms which requires building, this is no easy task? – Zombies Feb 14 '14 at 19:00
  • I'm saying alien can convert an rpm to a deb package -- or at least try as rpms can have complex install/remove scripts. alien can be told to do everything but build the deb, where you can look at what the rpm tries to do and maybe clean it up before building the deb. If rpmextract did the trick, then don't worry about alien. – Ricky Beam Feb 14 '14 at 20:39
  • 4
    Maybe I'm missing something, but creating a deb file doesn't seem useful because Arch Linux does not use a deb based package manager. – Wieland Feb 16 '14 at 7:51
  • tgz then (which will be close to what pacman uses, but not the same) A deb can easily be extracted using cpio. (and tgz, directly with tar.) RPM is a bastardized cpio archive -- it has a bunch of junk before the gzip'd cpio stream. – Ricky Beam Feb 17 '14 at 3:27
-2

I'm not sure if these would work for everyone, but its the fastest way if you don't care what it may or may not do

I did these to get skype working on arch, basically open the .rpm file, then see if you can find a file named "." If you do then copy the files within the "." file to your root directory (AKA "/")

I do not recommend these unless you know exactly what you're doing

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.