You are not logged in.

#1 2021-07-20 13:15:49

BAR777
Member
Registered: 2021-06-01
Posts: 43

(Solved)Using pacman options on pacstrap

Hi Arch linux team.
Reinstalling arch linux and i made a question.
Can i use a pacman option (--asdeps) on pacstap?
Also i only mean (--asdeps) and no other options.
Thanks.

Last edited by BAR777 (2021-09-24 07:09:43)

Offline

#2 2021-07-20 13:47:58

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

Re: (Solved)Using pacman options on pacstrap

I don't think so - but more importantly, why on earth would you want the entire base install to be marked as dependencies?  Every single package on the system would then be flagged for removal anytime you tried to clean up orphaned packages.

You can use `pacman -D` after the fact to change the installation reason of specific packages.

Last edited by Trilby (2021-07-20 13:49:10)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2021-07-20 14:16:07

seth
Member
Registered: 2012-09-03
Posts: 49,991

Re: (Solved)Using pacman options on pacstrap

Fwwi, pacstrap is a bash script that calls pacman, so if you alias pacman to "pacman --asdeps" it will likely do what you probably don't want to do.
Why do you think you want to do that?
Don't do that.

Online

#4 2021-07-26 11:06:29

BAR777
Member
Registered: 2021-06-01
Posts: 43

Re: (Solved)Using pacman options on pacstrap

Trilby wrote:

I don't think so - but more importantly, why on earth would you want the entire base install to be marked as dependencies?  Every single package on the system would then be flagged for removal anytime you tried to clean up orphaned packages.

You can use `pacman -D` after the fact to change the installation reason of specific packages.

Really?
I mean it flag every package as deps?

Offline

#5 2021-07-26 11:08:58

seth
Member
Registered: 2012-09-03
Posts: 49,991

Re: (Solved)Using pacman options on pacstrap

What did you think "--asdeps" would mean??
https://man.archlinux.org/man/core/pacman/pacman.8.en

Online

#6 2021-07-26 11:11:32

BAR777
Member
Registered: 2021-06-01
Posts: 43

Re: (Solved)Using pacman options on pacstrap

What do you mean by

seth wrote:

it will likely do what you probably don't want to do.

seth wrote:

Why do you think you want to do that?

For installing base deps.

Offline

#7 2021-07-26 11:12:48

BAR777
Member
Registered: 2021-06-01
Posts: 43

Re: (Solved)Using pacman options on pacstrap

seth wrote:

What did you think "--asdeps" would mean??
https://man.archlinux.org/man/core/pacman/pacman.8.en

Installs a package deps automatic
Also optimal packages which come in the last part of installing package

Last edited by BAR777 (2021-07-26 11:13:49)

Offline

#8 2021-07-26 11:15:30

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,794
Website

Re: (Solved)Using pacman options on pacstrap

You have been given a plate full of food...

--asdeps

Install packages non-explicitly; in other words, fake their install reason to be installed as a dependency. This is useful for makepkg and other build-from-source tools that need to install dependencies before building the package.


https://ugjka.net
paru > yay | webcord > discord
pacman -S spotify-launcher
mount /dev/disk/by-...

Offline

#9 2021-07-26 11:16:17

seth
Member
Registered: 2012-09-03
Posts: 49,991

Re: (Solved)Using pacman options on pacstrap

For installing base deps.

Packages draw dependencies by default.
https://archlinux.org/packages/core/any/base/ is a ameta-package that simply depends on a bunch of useful things and installs them but doesn't provide anything itself nor is the dependency for something.
It's a convenience thing to easily install stuff for some core functionality.
Iow

pacman -S base

*will* install "base deps".

Online

#10 2021-07-26 11:19:08

BAR777
Member
Registered: 2021-06-01
Posts: 43

Re: (Solved)Using pacman options on pacstrap

seth wrote:

For installing base deps.

Packages draw dependencies by default.
https://archlinux.org/packages/core/any/base/ is a ameta-package that simply depends on a bunch of useful things and installs them but doesn't provide anything itself nor is the dependency for something.
It's a convenience thing to easily install stuff for some core functionality.
Iow

pacman -S base

*will* install "base deps".

I know about base deps.
How about optimal deps.

Offline

#11 2021-07-26 11:19:48

BAR777
Member
Registered: 2021-06-01
Posts: 43

Re: (Solved)Using pacman options on pacstrap

ugjka wrote:

You have been given a plate full of food...

--asdeps

Install packages non-explicitly; in other words, fake their install reason to be installed as a dependency. This is useful for makepkg and other build-from-source tools that need to install dependencies before building the package.

Thanks.
But i want to continue this post.

Offline

#12 2021-07-26 11:24:33

seth
Member
Registered: 2012-09-03
Posts: 49,991

Re: (Solved)Using pacman options on pacstrap

What?

So my best guess is that this has nothing to do with the base package nor --asdeps, but you seek a way to have pacman automatically draw all *optiONal* dependencies??
That's not a thing nor a particularily good idea, because it could spiral out of proportions very quickly.
You'd inspect the package info and draw the optional dependencies from there and install *those* --asdeps one by one.

If that's not your problem (and again: automatically drawing all *optional* dependencies is a less than good idea), please explain what you *actually* want to achieve. Don't ask how to apply what you think the solution might be.

Online

#13 2021-07-26 11:43:17

BAR777
Member
Registered: 2021-06-01
Posts: 43

Re: (Solved)Using pacman options on pacstrap

seth wrote:

What?

So my best guess is that this has nothing to do with the base package nor --asdeps, but you seek a way to have pacman automatically draw all *optiONal* dependencies??
That's not a thing nor a particularily good idea, because it could spiral out of proportions very quickly.
You'd inspect the package info and draw the optional dependencies from there and install *those* --asdeps one by one.

If that's not your problem (and again: automatically drawing all *optional* dependencies is a less than good idea), please explain what you *actually* want to achieve. Don't ask how to apply what you think the solution might be.

First sorry for bad english.
Second you mean the best way is to visit the "package info in arch linux website ? "archlinux.org/packages/XXX/XXX""  For installing optional (WoW i fixed it) packages?

Offline

#14 2021-07-26 11:49:48

seth
Member
Registered: 2012-09-03
Posts: 49,991

Re: (Solved)Using pacman options on pacstrap

You could fish it out of "pacman -Qi <package>" or /var/lib/pacman/local/<package-version>/desc

Online

#15 2021-07-26 12:13:41

BAR777
Member
Registered: 2021-06-01
Posts: 43

Re: (Solved)Using pacman options on pacstrap

seth wrote:

You could fish it out of "pacman -Qi <package>" or /var/lib/pacman/local/<package-version>/desc

Thanks bro

Offline

Board footer

Powered by FluxBB