Pkg file arch linux

ArchPKGs

Full Guide on Installing pkgfile on Arch Linux (Manjaro, Anarchy)

pkgfile is «a pacman .files metadata explorer» quoting from its own definition. To install pkgfile from Arch official repository (Extra) on Arch Linux, Manjaro, EndeavourOS, Anarchy, RebornOS, ArcoLinux and Parabola is pretty uncomplicated. This tutorial will be covering how to install, update and remove the package with either the default package manager pacman or an AUR helper (e.g. yay ).

Table of Contents

There are generally two ways to install pkgfile from Arch official repository (Extra). pacman is what you’re looking for if you are a seasoned Linux user and understand the concept of how packages are built. If not, yay is a popular alternative to install packages without the hassle of reviewing PKGBUILD and build packages with makepkg afterwards.

sudo pacman -S pkgfile
yay -S pkgfile

Since Arch is a rolling-release Linux distro, it is required to do a whole system upgrade before updating an official package due to safety reason.

sudo pacman -Syu

Removing packages is the easiest of these three,all you need to do is choose whether to purge the unused dependencies and the configuration files used by the package.

sudo pacman -R pkgfile
sudo pacman -Rs pkgfile
sudo pacman -Rns pkgfile
yay -R pkgfile
yay -Rs pkgfile
yay -Rns pkgfile

How to Install gvmd with Command Line on Arch Linux (Manjaro, Anarchy)

gvmd is «Vulnerability manager Daemon» based on its profile. To get gvmd from AUR (Arch User Repository) on Arch Linux and Arch-based Linux distributions (e.g. Manjaro, EndeavourOS, RebornOS, Parabola, Anarchy, ArcoLinux) is relatively uncomplicated. This guide will show you step-by-step how to install/update/remove the package with either the built-in package manager pacman or an AUR helper like yay.

Читайте также:  Загрузочная флешка linux чем делать

Step-by-Step Guide on Installing forge-server-mcw-paintings on Arch Linux, Manjaro and Parabola

forge-server-mcw-paintings is «Macaw’s Paintings – this mod adds 46 paintings, with a vanila fitting style.» referring to its own description. To install or remove this package (forge-server-mcw-paintings) from AUR (Arch User Repository) on Arch Linux, Manjaro, EndeavourOS, Garuda, ArcoLinux and BlackArch is quite straightforward. This tutorial will be covering how to install/update/uninstall the package with either the built-in package manager pacman or an AUR helper like yay.

Quick Tutorial on ruby27-rdoc Installation on Arch Linux (Manjaro/RebornOS)

«Command-line documentation generator for Ruby projects» is their profile of ruby27-rdoc. To install and update this package (ruby27-rdoc) from AUR (Arch User Repository) on Arch Linux and Arch-based Linux distros (e.g. Manjaro, EndeavourOS, Artix, RebornOS, Anarchy) is comparatively simple. This tutorial will be covering how to install, update and uninstall the package with either the built-in package manager pacman or an AUR helper like yay.

Installing erg-bin (Complete Tutorial) on Arch Linux/Manjaro/Parabola

Based on erg-bin’s own description, it is «Statically typed language that can deeply improve the Python ecosystem». To get erg-bin from AUR (Arch User Repository) on Arch Linux, Manjaro, EndeavourOS, BlackArch, RebornOS and Artix is comparatively simple. This tutorial will be covering how to install/update/remove the package with either the default package manager pacman or an AUR helper (e.g. yay).

How to Install mhonarc (Full Tutorial) on Arch-Based Linux (Manjaro, Garuda)

«a Perl mail-to-HTML converter» is the developer’s description of mhonarc. To get mhonarc from AUR (Arch User Repository) on Arch Linux and Arch-based distros (e.g. Manjaro, EndeavourOS, RebornOS) is pretty straightforward. This tutorial will show you step-by-step how to install/update/uninstall the package with either the default package manager pacman or an AUR helper (e.g. yay).

Beginner’s Tutorial on Installing uavcan-git on Arch Linux, Manjaro and EndeavourOS

uavcan-git is «UAVCAN is a lightweight protocol designed for reliable communication in aerospace and robotic applications via CAN bus (git version)» according to its own gist. To install or uninstall this package (uavcan-git) from AUR (Arch User Repository) on Arch Linux, Manjaro, EndeavourOS and Artix is pretty easy. This tutorial will show you step-by-step how to install, update and uninstall the package with either the default package manager pacman or an AUR helper like yay.

More guides… copyright 2023 ArchPKGs. All Rights Reserved.

Источник

pkgfile (Русский)

Состояние перевода: На этой странице представлен перевод статьи pkgfile. Дата последней синхронизации: 11 июля 2021. Вы можете помочь синхронизировать перевод, если в английской версии произошли изменения.

Читайте также:  Linux openvpn генерация сертификата

pkgfile — инструмент для поиска файлов в пакетах из официальных репозиториев.

Установка

Установите пакет pkgfile . В качестве альтернативы можно установить пакет pkgfile-git AUR из AUR.

Чтобы синхронизировать базу данных pkgfile, выполните команду:

Использование

Найти пакет, которому принадлежит файл makepkg :

Показать все файлы пакета archlinux-keyring :

$ pkgfile -l archlinux-keyring
core/archlinux-keyring usr/ core/archlinux-keyring usr/share/ core/archlinux-keyring usr/share/pacman/ core/archlinux-keyring usr/share/pacman/keyrings/ core/archlinux-keyring usr/share/pacman/keyrings/archlinux-revoked core/archlinux-keyring usr/share/pacman/keyrings/archlinux-trusted core/archlinux-keyring usr/share/pacman/keyrings/archlinux.gpg

Последняя команда похожа на команду pacman -Ql (подробности можно найти в статье pacman#Запросы к базам данных пакетов), но позволяет искать файлы пакетов, которые ещё не установлены в систему и находятся в удалённых (remote) репозиториях.

Команда не найдена

Автоматические обновления

pkgfile поставляется вместе со службой systemd и таймером для автоматической синхронизации базы данных. Для запуска автоматического обновления включите таймер pkgfile-update.timer .

По умолчанию, база данных обновляется ежедневно. Чтобы изменить график обновлений, отредактируйте файл юнита.

Источник

Creating Arch Linux Packages

Creating Arch Linux Packages

In this blog, we take a look at creating Arch Linux packages. Working through an example we create an Arch Linux package with the latest SED source code. In Arch, we have pkg files stat make up the software packages used to encapsulate out software that we install and remove from the system. These files are very similar to the deb files we have in Debian and the rpm files used in Red Hat.

Using Software Packages

In all Linux distributions, we want to use software packages where possible when installing software. The process of installing is simplified and the package contains the packaged programs and dependencies lists. More than this though, we are able to easily list what is installed and remove software that is no longer needed as we have a database of what is installed.

Latest Software Versions

When a package is not available in the repository then you can choose to download and compile the source code. This, though, is not the best where we have many servers and it is not so easy to audit or remove software installed in this way. This is where we can create our own packages so we can maintain the integrity of our installed software base across the server estate. We may also choose this method where the latest version of the vendor software has not made it into the Arch repositories. We will use SED 4.4 for the demonstration, the current version in the repo is 4.2.

Creating Arch Linux Packages for SED 4.4

We will be working with the source code for SED, the Stream Editor. The version we have in the repos as of February 2017 is version 4.2 and the latest version from the vendor itself is 4.4. Although, there may not be a lot of difference we may need these new features and hence the need to package sed 4.4.

Читайте также:  Linux open source cad

Build Host

We need an Arch system up and running to build the packages on. This needs to be the same architecture of the target clients. Ensure that we have the base-devel package group installed as this will give as there required compilers and the makepkg command.

With this installed and ready top go we can create a directory to work with. We should be logged in as a standard user and NOT root. Move to your home directory and create a folder called abs for Arch Build System. We won’t be using the ABS command but the directory name still makes sense. In that directory, we can create a directory named sed . Representing the package that we are creating.

$ cd $ midir -p abs/sed $ cd abs/sed

Create the PKGBUILD File

The command makepkg will read it work inventory from the PKGBUILD file. A sample file can be copied from /usr/share/pacman/PKGBUILD.proto . The file should be copied across to the sed directory and named PKGBUILD. The file should be edited so it appears similar to the following:

pkgname="sed" pkgver=4.4 pkgrel=1 pkgdesc="SED the stream editor" arch=("x86_64") license=('GPL') source=("ftp://ftp.gnu.org/gnu/sed/$pkgname-$pkgver.tar.xz") build() < cd "$pkgname-$" ./configure --prefix=/usr make > package() < cd "$pkgname-$" make DESTDIR="$pkgdir" install >
  • The source function is used to download the source code tarball
  • The build function creates the Makefile and compiles the code
  • The package function installs the target code to a local subdirectory so the install can run as a standard user and not actually install onto the system. This steps also creates the package from the dummy directory.

The structure of the abs directory should be similar to this:

Execute makepkg

To create the package we run the aptly named program makepkg . This is from the base-devel package group. We first run with the -g option which will create an MD5 Checksum for the downloaded source file and add it to the PKGBUILD file. We then run makepkg proper. This all should be run from the ~/abs/sed directory.

$ makepkg -g >> PKGBUILD && makepkg

This will run through the complete instruction set that we added to the PKGBUILD file and create a file named: sed-4.4-1-x86_64.pkg.tar.xz. This we can copy to the target systems or add to our own repo. In the demo we create the package file to another Arch Linux system for installation:

$ scp sed-4.4-1-x86_64.pkg.tar.xz 192.168.56.11:

We can then install it from that system with:

$ sudo pacman -U sed-4.4-1-x86_64.pkg.tar.xz

I hope you enjoy the video demonstration:

Источник

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