Ошибка cannot find the fakeroot binary

Manjaro Linux Forum

Loading

Я хочу установить yay для загрузки пакета из Aur ArchLinux Я не знаю, что делать, спасибо за руководство

Когда я использую клон git и использую команду makepkg -si, она выдает эту ошибку

git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si

Текст ошибки:

==> ERROR: Cannot find the fakeroot binary.
==> ERROR: Cannot find the strip binary required for object file stripping.

2 ответа

Вам не хватает библиотек для компиляции пакета. Чтобы установить их:

sudo pacman -S binutils make gcc pkg-config fakeroot

Или, чтобы установить основные инструменты для компиляции кода:

sudo pacman -S base-devel

Кроме того, вместо установки и компиляции yay (что также требует установки всех библиотек GO), почему бы не установить предварительно скомпилированный yay-bin? Это тот же пакет.

git clone https://aur.archlinux.org/yay-bin.git
cd yay-bin
makepkg -si


0

La faguette
13 Мар 2020 в 16:35

Попробуйте с этим:

sudo pacman -S binutils make gcc pkg-config fakeroot

Затем снова попробуйте сделать pkgg.


0

Muata
2 Мар 2020 в 12:17

Manjaro update error fixes

Solve error: cannot find the fakeroot binary

sudo pacman -S base-devel

To select fastest mirror from 5

sudo pacman-mirrors --fasttrack 5 && sudo pacman -Syyu

Update failure

sudo pacman -Scc
sudo mv /etc/pacman.d/gnupg /etc/pacman.d/gnupg.old

To refresh update keys

sudo pacman-key --init
sudo pacman-key --populate
sudo pacman-key --refresh-keys
sudo pacman -Sy archlinux-keyring

To remove cached packages

sudo pacman -R $(pacman -Qtdq)

Troubleshooting update errors

sudo rm /etc/resolv.conf
sudo sh -c 'echo "nameserver 8.8.8.8" > /etc/resolv.conf

I want to install yay for downloading package from AUR ArchLinux,
I don’t know what to do?!
Thanks for your helping.

When I use git clone and then use the makepkg -si command , it gives me this error:

git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si

Error text:

==> ERROR: Cannot find the fakeroot binary.
==> ERROR: Cannot find the strip binary required for object file stripping.

asked Feb 27, 2020 at 13:28

Arian Hosseini's user avatar

Arian HosseiniArian Hosseini

1381 gold badge1 silver badge11 bronze badges

You’re missing the libraries to compile the package. To install them:

sudo pacman -S binutils make gcc pkg-config fakeroot

or, to install basic tools for compiling code:

sudo pacman -S base-devel

Also instead of installing and compiling yay (which also requires you to install all the GO libraries) why not installing the precompiled yay-bin? It’s the same package.

git clone https://aur.archlinux.org/yay-bin.git
cd yay-bin
makepkg -si

answered Mar 13, 2020 at 16:35

La faguette's user avatar

La faguetteLa faguette

5414 silver badges11 bronze badges

try with that:

sudo pacman -S binutils make gcc pkg-config fakeroot

then again try to makepkg.

answered Mar 2, 2020 at 12:17

Muata's user avatar

MuataMuata

313 bronze badges

Содержание

  1. Arch Linux
  2. #1 2013-06-19 22:41:05
  3. Help installing BlackArch
  4. Arch Linux
  5. #1 2009-05-31 11:39:53
  6. (SOLVED) Problems resolving dependencies as fakeroot wit AUR
  7. #2 2009-05-31 11:42:56
  8. Re: (SOLVED) Problems resolving dependencies as fakeroot wit AUR
  9. #3 2009-05-31 11:43:29
  10. Re: (SOLVED) Problems resolving dependencies as fakeroot wit AUR
  11. #4 2009-05-31 11:54:13
  12. Re: (SOLVED) Problems resolving dependencies as fakeroot wit AUR
  13. Arch Linux
  14. #1 2013-06-19 22:41:05
  15. Help installing BlackArch
  16. How to Install Yay AUR Helper in Arch Linux and Manjaro
  17. Installing Yay AUR Helper in Arch Linux and Manjaro
  18. How to Use Yay in Arch Linux and Manjaro
  19. If You Appreciate What We Do Here On TecMint, You Should Consider:
  20. Discussion on: Installing AUR packages

Arch Linux

You are not logged in.

#1 2013-06-19 22:41:05

Help installing BlackArch

So I am looking to add a nice array of security packages so I decided to give BlackArch a go. Unfortunately ever command run by it gives me a different error. Just looking to see if anyone else has an error like this.

The install instructions are clear except for this part:

When installing using the blackarch install script, please make sure the following repositories are enabled: core extra community multilib and lastly make sure to synchronize your pacman database with pacman -Sy or be fully up-to-date with your packages with pacman -Syu

What does it mean when it says ensure the repositories are enabled?

Here are the errors I am getting when running the build script:

==> ERROR: Cannot find the strip binary required for object file stripping.
==> ERROR: Cannot find the fakeroot binary required for building as non-root user.
==> ERROR: Cannot find the strip binary required for object file stripping.
==> ERROR: Cannot find the fakeroot binary required for building as non-root user.
==> ERROR: Cannot find the strip binary required for object file stripping.
==> ERROR: Cannot find the fakeroot binary required for building as non-root user.
==> ERROR: Cannot find the strip binary required for object file stripping.
==> ERROR: Cannot find the fakeroot binary required for building as non-root user.
==> ERROR: Cannot find the strip binary required for object file stripping.
==> ERROR: Cannot find the fakeroot binary required for building as non-root user.
==> ERROR: Cannot find the fakeroot binary required for building as non-root user.
==> ERROR: Cannot find the strip binary required for object file stripping.
==> ERROR: Cannot find the fakeroot binary required for building as non-root user.
==> ERROR: Cannot find the strip binary required for object file stripping.
==> ERROR: Cannot find the fakeroot binary required for building as non-root user.
==> ERROR: Cannot find the strip binary required for object file stripping.
==> ERROR: Cannot find the fakeroot binary required for building as non-root user.
==> ERROR: Cannot find the strip binary required for object file stripping.
==> ERROR: Cannot find the fakeroot binary required for building as non-root user.
==> ERROR: Cannot find the strip binary required for object file stripping.

Источник

Arch Linux

You are not logged in.

#1 2009-05-31 11:39:53

(SOLVED) Problems resolving dependencies as fakeroot wit AUR

I downloaded the tsclient PKGBUILD and followed the AUR User Guidelines. Fakeroot is installed (I don’t use sudo) and makepkg.conf looks ok. When I issue makepkg I get the following errors. What is the proper way to deal with these buildtime dependencies?

Last edited by aniruddha (2009-05-31 17:10:52)

#2 2009-05-31 11:42:56

Re: (SOLVED) Problems resolving dependencies as fakeroot wit AUR

You must install sudo do build packages

Shell Scripter | C/C++/Python/Java Coder | ZSH

#3 2009-05-31 11:43:29

Re: (SOLVED) Problems resolving dependencies as fakeroot wit AUR

@aniruddha i`m sorry if you didn’t understand the first error. just install sudo and add configure sudo to be used by your username.
http://wiki.archlinux.org/index.php/Sudo

Give what you have. To someone, it may be better than you dare to think.

#4 2009-05-31 11:54:13

Re: (SOLVED) Problems resolving dependencies as fakeroot wit AUR

Thanks for the quick replies! I really want to avoid sudo, and as far as I can tell it isn’t necessary: I rather use fakeroot instead. I wonder though why it doesn’t work

This will use sudo to install any dependencies, if the use of sudo is undesirable use fakeroot (see below) and don’t include the «-s» in the makepkg command.

Источник

Arch Linux

You are not logged in.

#1 2013-06-19 22:41:05

Help installing BlackArch

So I am looking to add a nice array of security packages so I decided to give BlackArch a go. Unfortunately ever command run by it gives me a different error. Just looking to see if anyone else has an error like this.

The install instructions are clear except for this part:

When installing using the blackarch install script, please make sure the following repositories are enabled: core extra community multilib and lastly make sure to synchronize your pacman database with pacman -Sy or be fully up-to-date with your packages with pacman -Syu

What does it mean when it says ensure the repositories are enabled?

Here are the errors I am getting when running the build script:

==> ERROR: Cannot find the strip binary required for object file stripping.
==> ERROR: Cannot find the fakeroot binary required for building as non-root user.
==> ERROR: Cannot find the strip binary required for object file stripping.
==> ERROR: Cannot find the fakeroot binary required for building as non-root user.
==> ERROR: Cannot find the strip binary required for object file stripping.
==> ERROR: Cannot find the fakeroot binary required for building as non-root user.
==> ERROR: Cannot find the strip binary required for object file stripping.
==> ERROR: Cannot find the fakeroot binary required for building as non-root user.
==> ERROR: Cannot find the strip binary required for object file stripping.
==> ERROR: Cannot find the fakeroot binary required for building as non-root user.
==> ERROR: Cannot find the fakeroot binary required for building as non-root user.
==> ERROR: Cannot find the strip binary required for object file stripping.
==> ERROR: Cannot find the fakeroot binary required for building as non-root user.
==> ERROR: Cannot find the strip binary required for object file stripping.
==> ERROR: Cannot find the fakeroot binary required for building as non-root user.
==> ERROR: Cannot find the strip binary required for object file stripping.
==> ERROR: Cannot find the fakeroot binary required for building as non-root user.
==> ERROR: Cannot find the strip binary required for object file stripping.
==> ERROR: Cannot find the fakeroot binary required for building as non-root user.
==> ERROR: Cannot find the strip binary required for object file stripping.

Источник

How to Install Yay AUR Helper in Arch Linux and Manjaro

The tow commonly used AUR helpers in Arch Linux are Yaourt and Packer. You can easily use them for Arch Linux package management tasks such as installing and updating packages.

However, the two have been discontinued in favour of yay, short for Yet Another Yaourt. Yay is a modern AUR helper written in the GO language. It has very few dependencies and supports AUR tab-completion so that you don’t have to type the commands in full. Just type the first few letters and hit ENTER.

In this article, we demonstrate how you can install Yay AUR helper on Arch Linux or Manjaro which is based on Arch and see a few examples of how you can use Yay.

Installing Yay AUR Helper in Arch Linux and Manjaro

To start off, log in as a sudo user and run the command below to download the git package.

Install Git on Arch Linux

Next, clone the yay git repository.

Clone Yay Git Repository

Change the file permissions from the root the sudo user.

Set Permissions on Yay AUR Helper

To build the package from PKGBUILD, navigate into the yay folder.

Next, build the package using the makepkg command below.

Install Yay AUR Helper in Arch Linux

How to Use Yay in Arch Linux and Manjaro

Once you have yay installed, you can upgrade all the packages on your system using the command.

To include development packages during the upgrade run.

As with any other AUR helpers, you can install the packages using the command.

To remove a package using yay use the command.

To clean up all unwanted dependencies on your system, issue the command.

If you want to print system statistics using yay, run.

And this sums up this brief tutorial on how you can install the yay AUR helper in Arch Linux and Manjaro.

Tutorial Feedback.

If You Appreciate What We Do Here On TecMint, You Should Consider:

TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web. Millions of people visit TecMint! to search or browse the thousands of published articles available FREELY to all.

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

We are thankful for your never ending support.

Источник

Discussion on: Installing AUR packages

Thank you very much for you Post!!
But when i at step2 ,I got an error
ERROR: Running makepkg as root is not allowed as it can cause permanent,
catastrophic damage to your system.
so i create a new user to use makepkg
but i got another error
==> ERROR: Cannot find the fakeroot binary.

I’m not an English speaker, so the words I write may be difficult to understand. I’m very sorry about that

Hello, @billyang
Thank you for your comments 🙂

ERROR: Running makepkg as root is not allowed as it can cause permanent,
catastrophic damage to your system.

I wonder if you used sudo . It is not recommended.
If you did as superuser, just type » makepkg . » instead. (Well, starting with $ means «do as a user».)

ERROR: Cannot find the fakeroot binary.

This may be another issue.
It seems a part of base-devel lacks.
It is possibly solved by installing fakerook (and other core packages if required):

Exit fullscreen mode

For further actions, you may consider blocking this person and/or reporting abuse

DEV Community 👩‍💻👨‍💻 — A constructive and inclusive social network for software developers. With you every step of your journey.

Built on Forem — the open source software that powers DEV and other inclusive communities.

Made with love and Ruby on Rails. DEV Community 👩‍💻👨‍💻 © 2016 — 2023.

We’re a place where coders share, stay up-to-date and grow their careers.

Источник

I want to install yay for downloading package from AUR ArchLinux,
I don’t know what to do?!
Thanks for your helping.

When I use git clone and then use the makepkg -si command , it gives me this error:

git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si

Error text:

==> ERROR: Cannot find the fakeroot binary.
==> ERROR: Cannot find the strip binary required for object file stripping.

asked Feb 27, 2020 at 13:28

Arian Hosseini's user avatar

Arian HosseiniArian Hosseini

1381 gold badge1 silver badge11 bronze badges

You’re missing the libraries to compile the package. To install them:

sudo pacman -S binutils make gcc pkg-config fakeroot

or, to install basic tools for compiling code:

sudo pacman -S base-devel

Also instead of installing and compiling yay (which also requires you to install all the GO libraries) why not installing the precompiled yay-bin? It’s the same package.

git clone https://aur.archlinux.org/yay-bin.git
cd yay-bin
makepkg -si

answered Mar 13, 2020 at 16:35

La faguette's user avatar

La faguetteLa faguette

5414 silver badges11 bronze badges

try with that:

sudo pacman -S binutils make gcc pkg-config fakeroot

then again try to makepkg.

answered Mar 2, 2020 at 12:17

Muata's user avatar

MuataMuata

313 bronze badges

Я хочу установить yay для загрузки пакета из Aur ArchLinux Я не знаю, что делать, спасибо за руководство

Когда я использую клон git и использую команду makepkg -si, она выдает эту ошибку

git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si

Текст ошибки:

==> ERROR: Cannot find the fakeroot binary.
==> ERROR: Cannot find the strip binary required for object file stripping.

2 ответа

Вам не хватает библиотек для компиляции пакета. Чтобы установить их:

sudo pacman -S binutils make gcc pkg-config fakeroot

Или, чтобы установить основные инструменты для компиляции кода:

sudo pacman -S base-devel

Кроме того, вместо установки и компиляции yay (что также требует установки всех библиотек GO), почему бы не установить предварительно скомпилированный yay-bin? Это тот же пакет.

git clone https://aur.archlinux.org/yay-bin.git
cd yay-bin
makepkg -si


0

La faguette
13 Мар 2020 в 16:35

Попробуйте с этим:

sudo pacman -S binutils make gcc pkg-config fakeroot

Затем снова попробуйте сделать pkgg.


0

Muata
2 Мар 2020 в 12:17

@joshirio

The update indicator (the gnome shell extension) requires fakeroot to check for updates which is not installed by default on a fresh install .Without it no updates are shown, in fact it says that everything is up to date when it’s clearly not. The update check command fails because of fakeroot missing.

Not sure if this happens only when AUR support is enabled (pamac settings). Anyway, I think this package should be included because users enabling the AUR checkbox in pamac expect it to work without additional steps.

Thanks for your great work, manjaro team.

@philmmanjaro

@Ste74

Honestly not understand what you mean.. I assume you talk about 17.1.x and not 17.0.1. Anyway is normal no update is show after install.. Before is needed to rebuild.db files.. After that updates are notified.. Whitout manual intervent only wait the notification.. Anyway we don’t support aur officially and for this reason as optdeoends in update-notifier pkg is listed yogurt (or pacaur)…

@philmmanjaro

@Ste74: the question is rather if fakeroot is needed to have update-notifier or the extension functional.

@joshirio
joshirio

changed the title
[Manjaro Gnome 17.0.1] missing fakeroot package causes update checking failure

[Manjaro Gnome 17.1.0] missing fakeroot package causes update checking failure

Jan 6, 2018

@joshirio

Yes sorry I meant version 17.1.0

I downloaded the gnome iso 2-3 days ago and installed it. Since I use manjaro also on different machines I noticed that the other were showing updates (recent meltdown/spectre fixes) while the gnome install was not, so I typed the «checkupdates» command into the terminal to check where the issues was and it reported missing fakeroot package.
The issues with this is, if you don’t check manually for updates, the user assumes everything is up to date.

I could try a fresh install on a virtual machine if you need more detailed information.

@philmmanjaro

checkupdates is part of which package? That seems to be broken then in dependency needs …

pacman -Qo /usr/bin/checkupdates

@Ste74

@joshirio

yes the correct command is «/usr/bin/update-check», my bad. This binary is part of the package «update-notifier»

@philmmanjaro

@Chrysostomus: do we have a dependency for fakeroot to get update-notifier functional? I didn’t found any source of it.

@philmmanjaro

@joshirio: can you print me an error message you get when fakeroot is not present?

@Ste74

@joshirio

@joshirio: can you print me an error message you get when fakeroot is not present?

$ update-check
==> ERROR: Cannot find the fakeroot binary.

@Chrysostomus

I did not know it needs fakeroot but apparently it does. I’ll add the dependency.

@Ste74

#1 2013-06-19 22:41:05

blankwall
Member
Registered: 2013-06-12
Posts: 36

Help installing BlackArch

So I am looking to add a nice array of security packages so I decided to give BlackArch a go. Unfortunately ever command run by it gives me a different error. Just looking to see if anyone else has an error like this.

The install instructions are clear except for this part:

When installing using the blackarch install script, please make sure the following repositories are enabled: core extra community multilib and lastly make sure to synchronize your pacman database with pacman -Sy or be fully up-to-date with your packages with pacman -Syu

What does it mean when it says ensure the repositories are enabled?

Here are the errors I am getting when running the build script:

==> ERROR: Cannot find the strip binary required for object file stripping.
==> ERROR: Cannot find the fakeroot binary required for building as non-root user.
==> ERROR: Cannot find the strip binary required for object file stripping.
==> ERROR: Cannot find the fakeroot binary required for building as non-root user.
==> ERROR: Cannot find the strip binary required for object file stripping.
==> ERROR: Cannot find the fakeroot binary required for building as non-root user.
==> ERROR: Cannot find the strip binary required for object file stripping.
==> ERROR: Cannot find the fakeroot binary required for building as non-root user.
==> ERROR: Cannot find the strip binary required for object file stripping.
==> ERROR: Cannot find the fakeroot binary required for building as non-root user.
==> ERROR: Cannot find the fakeroot binary required for building as non-root user.
==> ERROR: Cannot find the strip binary required for object file stripping.
==> ERROR: Cannot find the fakeroot binary required for building as non-root user.
==> ERROR: Cannot find the strip binary required for object file stripping.
==> ERROR: Cannot find the fakeroot binary required for building as non-root user.
==> ERROR: Cannot find the strip binary required for object file stripping.
==> ERROR: Cannot find the fakeroot binary required for building as non-root user.
==> ERROR: Cannot find the strip binary required for object file stripping.
==> ERROR: Cannot find the fakeroot binary required for building as non-root user.
==> ERROR: Cannot find the strip binary required for object file stripping.

Any help is appreciated.

#2 2013-06-19 22:45:55

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 27,833
Website

Re: Help installing BlackArch

(edit: removed some incorrect assessments)

EDIT: I just looked at some of your previous posts: it looks like you have in fact installed a ‘true’ archlinux system to start with, right? What is the output of the following

which strip
pac -Qs binutils

Last edited by Trilby (2013-06-30 17:29:37)


«UNIX is simple and coherent…» — Dennis Ritchie, «GNU’s Not UNIX» —  Richard Stallman

#3 2013-06-19 22:46:34

progandy
Member
Registered: 2012-05-17
Posts: 5,071

Re: Help installing BlackArch

You’ll have to install the groups base, base-devel and multilib-devel if you want to build mulitlib packages from source (with makepkg and PKGBUILDs)

Last edited by progandy (2013-06-19 22:47:41)


| alias CUTF=’LANG=en_XX.UTF-8@POSIX ‘ |

#4 2013-06-19 22:48:51

blankwall
Member
Registered: 2013-06-12
Posts: 36

Re: Help installing BlackArch

Yes this is a true Arch isntall. I have been updating every 2 days or so at this point. 

Here is the output. Clearly seems I am missing whatever is needed.

[blankwall@blankwall ~]$ which strip
which: no strip in (/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/core_perl)
[blankwall@blankwall ~]$ pac -Qs binutils
bash: pac: command not found
[blankwall@blankwall ~]$

Last edited by blankwall (2013-06-19 22:51:11)

#5 2013-06-19 22:51:08

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 27,833
Website

Re: Help installing BlackArch

Sorry blankwall, I may have been going on too quick a reaction. (edit: happily BlackArch’s maintainer [see below] has remedied all the quirks I had reacted to, so this post became irrelevant).

Last edited by Trilby (2013-06-30 17:30:33)


«UNIX is simple and coherent…» — Dennis Ritchie, «GNU’s Not UNIX» —  Richard Stallman

#6 2013-06-20 19:56:20

opt1mus
Member
From: UK
Registered: 2011-12-31
Posts: 212
Website

Re: Help installing BlackArch

It’s not just advice, looking at the github repo; the install shell script contains pacman -Sy.

— edit below —

I don’t use these scripts at all, but took it off my own back to email codemunchies about this, recommending a change re: unsupported pacman usage.

Last edited by opt1mus (2013-06-20 20:42:02)

#7 2013-06-25 20:25:09

codemunkii
Member
Registered: 2012-07-22
Posts: 4
Website

Re: Help installing BlackArch

I have a software development/infosec background, by no means an ArchLinux expert.  When I started this project I was fairly new to ArchLinux (and I’m still learning a lot), but enjoyed using it’s minimalist style so much I wanted to bring a pentest toolset to it.  That being said I made a lot of mistakes in the execution.  The «full install» script should probably only be run on a new clean system as it could potentially break an already configured system, but also included the option to download and makepkg individual tools as the user sees fit.  To be honest it would’ve been easier on everyone to just put it all on the AUR.  I should’ve never stored all the source code on my server making it more difficult to keep packages up to date, I should’ve never written a script to install a full blown set of tools via makepkg, I should’ve never modified the core XFCE menu file, better to create a new file in the user’s home path (more potential for breaking a system), and many other mistakes.

That being said, with all this experience and feedback from the ArchLinux community, BlackArch is taking a much different approach.  I’ll still retain the github repository for those that want to manage their own or build their own, but the source code links in the PKGBUILD files will pull straight from the developers, and all the packages that are not already available on the AUR I’ll push up.  All packages will be in a repository that can be used to install each tool, and a script that will bulk install all the tools from the repository (should the user choose to).

One thing I will say, the ArchLinux community is far more forgiving than I give it credit for, and I do appreciate any and all criticism/feedback.

@blankwall, if you want to give it a try download the VM from the BlackArch website download link and give that a try, and stay tuned for a much improved BlackArch.

#8 2013-06-30 17:05:58

codemunkii
Member
Registered: 2012-07-22
Posts: 4
Website

Re: Help installing BlackArch

Long gone are the days of a shell install script, BlackArch linux is now a pacman repository.  I appreciate the emails and messages, all feedback is helping to shape the project.

List of available packages: blackarch package list

Maybe I should create groups to make it easier for users to bulk-install?  Any ideas?

Last edited by codemunkii (2013-06-30 17:08:08)

#9 2013-09-20 03:43:28

rsplenum
Member
Registered: 2013-01-10
Posts: 25

Re: Help installing BlackArch

how to create a blackarch tools menu in kde ?

#10 2013-09-20 11:39:30

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,082

Re: Help installing BlackArch

rsplenum wrote:

how to create a blackarch tools menu in kde ?

Please don’t necrobump unrelated threads, also we don’t generally provide support for arch derivates. You should go to the forum/irc/whatever of blackarch.

Last edited by Mr.Elendig (2013-09-20 11:40:53)


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

#12 2013-09-20 11:55:47

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,082

Re: Help installing BlackArch

His problem is still directly related to the blackarch project, and not really to arch itself.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

#13 2013-09-20 12:41:01

Awebb
Member
Registered: 2010-05-06
Posts: 6,078

Re: Help installing BlackArch

I think this should be handled similar to Xyne’s repository and respective threads. The project’s goal seems to be compiling additional software for a specific group of tasks. I did not do a complete scan of the package list, but none of those packages looks particularly familiar, so I’d guess (if that was the case), that it does not really collide with vanilla Arch packages most of the time, so we can give it as much attention as we would to an AUR help related thread. In addition, the project lead seems to deal with this thread personally, so in my book, this one goes below the «other distribution» threshold.

EDIT: Then again, if there is an IRC channel, hell, why not ask their first, indeed.

Last edited by Awebb (2013-09-20 12:42:27)

#14 2013-09-20 13:37:32

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Help installing BlackArch

If there’s some info missing, is outdated or incomplete, please add it to the wiki article.
I copied the description from their github page https://wiki.archlinux.org/index.php?ti … did=272608 but I’m not familiar with the project, so I might have gotten something wrong.

#15 2013-09-20 17:42:53

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 27,833
Website

Re: Help installing BlackArch

We do help with many software packages that can be added on top of arch.  If we (forum) only supported a base arch install, all WM/DE/X11 questions would be off limits.

That said, «installation» probably isn’t the right forum for this.  I’m not sure it Networking (as that’s the point of many of the tools in Black Arch — I think) or Applications, or AUR.


«UNIX is simple and coherent…» — Dennis Ritchie, «GNU’s Not UNIX» —  Richard Stallman

#16 2013-09-20 18:17:56

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,010

Re: Help installing BlackArch

Trilby is (as usual) correct.. Moving to AUR


Nothing is too wonderful to be true, if it be consistent with the laws of nature — Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. — Alan Turing

How to Ask Questions the Smart Way

Pacman is a powerful package manager that ships as the default on Arch-based distros, but it lacks the functionality of downloading packages from the Arch User Repository (AUR). The AUR is a community-maintained repository providing thousands of third-party packages in the form of installation scripts, also known as PKGBUILDs.

To install packages using these PKGBUILDs, we require an AUR helper like yay. yay doesn’t come preinstalled on Arch Linux and isn’t available in the official Arch repositories either. So how do you install yay to download packages from the AUR on your Arch desktop? Let’s find out.

How to Install yay on Arch Linux

The yay package is only available in the Arch User Repository. Note that you can manually install packages from the AUR without using an AUR helper (similar to how we’ll install yay below), but as the name suggests, an «AUR helper» assists you in the installation process, making it easier for you to install packages with minimum user interaction.

To install yay on your Arch desktop, first, download the following dependencies:

 sudo pacman -S --needed base-devel git 

Then, clone the yay repository using the git clone command:

 git clone https://aur.archlinux.org/yay.git 

Change your present working directory to the newly-downloaded yay folder using the cd command:

 cd yay 

Finally, use the makepkg command to build and install yay:

 makepkg -si 

If the above command throws the «cannot find the fakeroot binary» error, make sure you’ve successfully installed the base-devel package and then re-run the command.

In addition to Arch Linux, this method works for other Arch-based distributions as well, including Manjaro, EndeavourOS, and Garuda Linux.

Once done, verify the installation by checking the version of yay installed.

 yay --version 

If the output returns a version number, you have succeeded in installing yay.

The AUR isn’t originally built for use on Linux distros other than Arch Linux and its derivatives (like Ubuntu and Linux Mint). On such distributions, you can use Pacstall, an AUR-inspired package manager that provides pacscripts for installing software.

How to Manage AUR Packages Using yay

yay and Pacman commands have a lot in common. For example, to install a new package using Pacman or yay, you use the -S flag, whereas to remove one, you’ve to use the -R option.

Now that you know the similarity between the two package managers, let’s begin with package management on Arch Linux using yay.

Searching for AUR Packages

Like Pacman, yay allows users to search for packages prior to installing them. If you’re unsure about the name of a particular package, you can use the yay command with the search term to find related packages.

 yay searchterm 

For example, to search for packages with «chrome» in their name:

 yay chrome 

Output:

searching packages with yay

To search for a package on both the official repositories and the AUR, use the -Ss flag:

 yay -Ss google-chrome 

You can also specify multiple keywords to perform a narrow, more focused search as follows:

 yay -S term1 term2 

The aforementioned command will first search for term1 and then narrow down the results by searching for term2 in the returned results.

Installing Packages With yay

As discussed before, to install packages with yay, simply specify the package name next to the -S flag:

 yay -S packagename 

To install the Google Chrome AUR package using yay:

 yay -S google-chrome 

The installation process isn’t completely automatic and you might have to enter your superuser password in the middle of the installation.

To only get the PKGBUILD of a package, use the -G or —getpkgbuild flag:

 yay -G google-chrome 

You can also choose to print the PKGBUILD by using the -p flag with -G:

 yay -Gp google-chrome 

Output:

view pkgbuild with yay

Removing Packages With yay

When you don’t need an AUR package and want to remove it from your system, use the -R option:

 yay -R packagename 

To uninstall Google Chrome:

 yay -R google-chrome 

If you want to remove the dependencies along with the package, append the -ns flag to the previous command:

 yay -Rns google-chrome 

Upgrading AUR Packages

Invoking the yay command without any arguments will perform a full system upgrade similar to the pacman -Syu command. Note that this command will also synchronize and upgrade packages from the official repositories in addition to the AUR.

To only update AUR packages, use the -Sua flag with the command:

 yay -Sua 

If you don’t want to update a package on Arch Linux, you’ll have to modify the configuration file located at /etc/pacman.conf. Linux also allows you to downgrade packages on your system if you want.

Using yay to Remove Unnecessary Dependencies

Unused dependencies can quickly pile up and consume a huge chunk of your system storage if not taken care of. You can either choose to remove the dependencies along with the packages by using the -Rns flag each time you remove something, or you can take the better route by sweeping them away all at once using the -Yc flag.

 yay -Yc 

The -Y in the command stands for «yay» and will only perform operations on packages installed using yay.

Additional yay Commands

To print package statistics and system health with yay, run the following command:

 yay -Ps 

Output:

print statistics using yay

In case you need help with the commands, you can easily get command-line help using the —help flag:

 yay --help 

Alternatively, you can view the yay manual page using:

 man yay 

The AUR Has Got Everything You Need!

Now that installing AUR packages is a breeze for you, go check out the AUR and search for software that you’ve always wanted to install on Linux. There’s a good chance that it’ll be available in the repository.

Keep in mind that using the AUR also poses a security risk. Since anyone can add their PKGBUILD to the AUR, these installation scripts aren’t often tested and reviewed properly. But that doesn’t mean you should stop downloading packages from the AUR altogether.

Instead, minimize the risk by reviewing the PKGBUILDs before installing the packages. Not only will this keep your system safe, but you’ll also learn how packages in the AUR work.

Понравилась статья? Поделить с друзьями:
  • Ошибка cannot be applied to given types
  • Ошибка cannot find sims 3 root
  • Ошибка cannot access nls data
  • Ошибка cannot find project or library
  • Ошибка canceling statement due to user request