You are not logged in.

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

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

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.

Offline

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

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

Re: 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: 22,358

Re: 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.

Offline

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

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

Re: 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: 22,358

Re: Using pacman options on pacstrap

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

Offline

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

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

Re: 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: 27

Re: 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,624
Website

Re: 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.


Fix yo shit: journalctl -b -p warning
My Website (ipv6-only)
"Learning the hard way is the only way for many."
Advaita: Robert Adams, Francis Lucille, Rupert Spira

Offline

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

seth
Member
Registered: 2012-09-03
Posts: 22,358

Re: 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".

Offline

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

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

Re: 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: 27

Re: 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: 22,358

Re: 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.

Offline

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

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

Re: 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: 22,358

Re: Using pacman options on pacstrap

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

Offline

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

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

Re: 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