Arch linux install from rpm

ArchPKGs

A Quick Guide on rpms Installation on Arch Linux/Manjaro/BlackArch

Based on rpms ‘s description, it’s «Renoir power metrics server». To install or uninstall this package ( rpms ) from AUR (Arch User Repository) on Arch Linux and Arch-based distros (e.g. Manjaro, EndeavourOS, RebornOS, Anarchy) is rather uncomplicated. This tutorial will be covering how to install, update and remove the package with either the built-in package manager pacman or an AUR helper (e.g. yay ).

Table of Contents

There are generally two methods to install rpms from AUR. pacman is what you are looking for if you’re a seasoned Linux user and have the idea of how packages are built. Otherwise, yay is a common alternative to install packages without the prerequisite to review PKGBUILD and build packages with makepkg on your own.

sudo pacman -S --needed git && git clone https://aur.archlinux.org/rpms.git && cd rpms && makepkg -si
  1. Install git if it is not already installed.
  2. clone the package’s git repository from upstream URL.
  3. cd into the directory of the repository.
  4. Build the package with makepkg . Also, it will automatically be installed with pacman if built successfully.

Updating AUR packages is pretty much the same as installing them. All you have to do is pull it from source then re-build it. Yet, it is still a good practice to upgrade your whole system first with sudo pacman -Syu before updating any packages to avoid dependency issues, since Arch is a rolling-release Linux distro.

git pull && makepkg -si
  1. pull from the package’s git repository.
  2. Build the package with makepkg , then update it with pacman .

Removing packages is the most uncomplicated of these three,all you need to do is choose whether to remove the dependencies that no longer required by other packages and the configuration files generated by the package.

sudo pacman -R rpms
sudo pacman -Rs rpms
sudo pacman -Rns rpms

Learn more details about AUR packages installation or how to install yay , please refer to Two Ways to Install Packages from AUR on Arch Linux/Manjaro.

Installing qjournalctl in Single Line of Command on Arch-Based Linux (Manjaro, Anarchy)

According to extra/qjournalctl’s own description, it’s «Qt-based graphical user interface for the journalctl command». To install and update extra/qjournalctl from Arch official repository (Extra) on Arch Linux and Arch-based Linux distros (e.g. Manjaro, EndeavourOS, BlackArch, Parabola, Anarchy, Garuda) is comparatively uncomplicated. This guide will show you step-by-step how to install/update/uninstall the package with either the built-in package manager pacman or an AUR helper like yay.

Читайте также:  Linux узнать время загрузки

How to Install brotli-static with One Command on Arch Linux, Manjaro and Garuda

brotli-static is «Brotli compression library (static version)» quoting from its description. To install and update this package (brotli-static) from AUR (Arch User Repository) on Arch Linux, Manjaro, EndeavourOS and RebornOS is fairly simple. This tutorial will taught you how to install/update/uninstall the package with either the default package manager pacman or an AUR helper like yay.

neovim-colors-brogrammer-git Install (Update, Remove) Tutorial on Arch Linux/Manjaro/Anarchy

Based on neovim-colors-brogrammer-git’s own description, it is «A dark, colorful syntax highlighting theme.». To install this package (neovim-colors-brogrammer-git) from AUR (Arch User Repository) on Arch Linux and Arch-based distributions (e.g. Manjaro, EndeavourOS, Artix, Garuda, Parabola, ArcoLinux) is comparatively simple. This tutorial will taught you how to install/update/remove the package with either the built-in package manager pacman or an AUR helper (e.g. yay).

How to Install inav-configurator with CLI on Arch-Based Linux (Manjaro, Garuda)

inav-configurator is «Crossplatform configuration tool for the INAV flight control system» according to its profile. To install or uninstall this package (inav-configurator) from AUR (Arch User Repository) on Arch Linux and Arch-based Linux distros (e.g. Manjaro, EndeavourOS, Anarchy) is quite uncomplicated. This tutorial will cover how to install, update and remove the package with either the built-in package manager pacman or an AUR helper (e.g. yay).

How to Install r-ttservice with CLI on Arch Linux, Manjaro and Artix

r-ttservice is «A Service for Tidy Transcriptomics Software Suite» referring to its definition. To install or remove r-ttservice from AUR (Arch User Repository) on Arch Linux, Manjaro, EndeavourOS, RebornOS, ArcoLinux, Anarchy and Parabola is comparatively uncomplicated. This guide will cover how to install/update/remove the package with either the default package manager pacman or an AUR helper like yay.

How to Install perl-www-aur in Single Command on Arch Linux, Manjaro and Artix

Based on perl-www-aur’s own profile, it’s «API for the Archlinux User Repository website.». To install this package (perl-www-aur) from AUR (Arch User Repository) on Arch Linux and Arch-based Linux distros (e.g. Manjaro, EndeavourOS, RebornOS, BlackArch, ArcoLinux, Parabola) is fairly simple. This tutorial will taught you how to install, update and remove the package with either the built-in package manager pacman or an AUR helper like yay.

More guides… copyright 2023 ArchPKGs. All Rights Reserved.

Источник

Install RPM file on Arch Linux?

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.

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.

«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.

Читайте также:  Xampp настройка в linux

5 Answers 5

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:

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.

This answer needs a link to example PKGBUILDs that take RPMs, extract them and then put the files where they need to go. The link to the AUR is not helpful in this case. It would be helpful if it were more specific.

Exactly. If you are not willing to provide a detailed answer to the question being asked or at least willing to provide links to specific instruction, please refrain from posting an answer. Links to AUR are useless—anyone using Arch would know what AUR is and where to find it. This answer is actually polluting search results and wastes everyone’s time —it shows up as answering the question, while it does not provide any specific useful information .

I was genuinely surprised at the lack of examples! Arch bundles a few make/configure examples in /usr/share/pacman , but that’s it. The templates link in HalosGhost’s answer is now a redirect to a page that only covers the variables within a PKGBUILD. So I find myself motivated to help others out here:

# Metadata; be sure to set this to reasonable values to not confuse your # package manager or cause name conflicts with the repositories. pkgname="rpm-package-name" pkgver="0.0.1" pkgrel="1" pkgdesc="Short description of rpm package" arch=("x86_64") # The RPM file you want to install; place in the same directory as this file. source=("filename.rpm") # Assuming you're not going to push this to AUR or whatever, you can just skip # the integrity check here. Otherwise, replace SKIP with the output of # "sha -a 256 filename.rpm". sha256sums=("SKIP") package() < # Copy all directories from $srcdir into $pkgdir. $srcdir will already have # been populated with the contents of package.rpm, but it also contains a # symlink to it, which we don't want to copy; anything in $pkgdir after this # command will be installed to your root directory. find $srcdir/ -mindepth 1 -maxdepth 1 -type d | xargs cp -r -t "$pkgdir" >

Be sure to edit the variables in the template as needed for your package. You will at least need to replace rpm-package-name and filename.rpm for it to work.

Читайте также:  Ps4 pro установка linux

After you create this PKGBUILD file with your desired rpm placed beside it, run makepkg from the same directory. If all goes well, you should be able to verify that the generated package file has what you expect in it by inspecting the generated file with tar tf .pkg.* . Do a sudo pacman -U .pkg.* and voila! Enjoy your rpm software that is now installed.

Of course if you run into any errors, I’m sure folks on the Arch forums would be willing to point you to some manuals to read.

Источник

How to Install RPM Packages on Arch Linux

WPS Office 2016 running on Arch, installed from an RPM package

It’s generally not a great idea to install RPM packages on Arch, especially if the application you intend to install already has a release native to Arch. Arch uses Pacman as its package manager, so playing around with different types of packages meant for other distros can cause incompatibility issues.

Pro tip: If you’re new to Arch and you’ve found this article because a package doesn’t exist in the Arch repositories, check out the Arch User Repository (AUR), chances are the package you want to install will be there

I have an RPM package that isn’t available in the AR or AUR

If you’re certain that you have an application that is exclusively distributed in an RPM format, then proceed with this tutorial.

In my case, I have an old 2016 RPM of WPS Office from back when I used Fedora, and I want to install it on my 2021 Arch installation. WPS Office is available natively in Arch, but I’d prefer to use this older version which I can’t find online.

Configure the RPM for Arch

GitHub user zinovyev posted a Ruby script a while back that extracts the contents of an RPM file and prepares them to be installed for Arch Linux. Go ahead and download it from GitHub using the link below. You may need to create a GitHub account to access it.

Then, install Ruby and rpm-tools.

sudo pacman -S ruby rpm-tools

At this point, extract the Zip that was downloaded from GitHub and place the script in the same directory as your RPM file.

Then give the script permission to execute, then run it with your RPM file as its argument.

chmod +x rpmtoarch sudo ./rpmtoarch .rpm

After the script was complete, it printed “RUN: 620” to the console… which I assume means it ran correctly?

Install the New Package

After the script runs, it will generate a new sub-directory with the same name as the RPM package. Take ownership of the sub-directory then change directories into it then install the package as you normally would (for instance, the same way you’d install an AUR package manually).

sudo chown -R cd makepkg -s sudo pacman -U .pkg.tar.zst

It’s more than likely that Pacman won’t like some of the configurations of the generated package. In my case, I was missing some dependencies and installed them with Pacman, and I also had to include the –overwrite argument within the installation command to get it to install.

That being said, I’ve had no issues with WPS Office (2016) so far, and I’m very satisfied with how easy it was to install on Arch.

Источник

Оцените статью
Adblock
detector