You are not logged in.

#1 2021-12-08 04:30:20

ricotries
Member
Registered: 2021-12-08
Posts: 3

[SOLVED] Is there any way to modify a package's "Required By" field?

As my list of AUR packages increases, some of these I have only installed because some other package required it, but it is become harder to track why some of these packages were installed.

For example, I installed the package "skdet", which "rkhunter" can use to enable some tests but does not actually require it to be installed. The output of pacman for "skdet":

# pacman -Qi skdet
Name            : skdet
Version         : 1.0-1
Description     : Simple rootkit detector that can be used by rkhunter.
Architecture    : x86_64
URL             : http://dvgevers.home.xs4all.nl/
Licenses        : GPL
Groups          : None
Provides        : None
Depends On      : None
Optional Deps   : None
Required By     : None
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 36.58 KiB
Packager        : Unknown Packager
Build Date      : Wed 18 Aug 2021 09:15:07 AM EDT
Install Date    : Wed 18 Aug 2021 09:15:29 AM EDT
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : None

Is there a way to modify the metadata of packages in the local database? Besides changing the "Install Reason", I have not found any related options in the man page for pacman, nor any related information in the Arch Linux documentation for pacman.

Last edited by ricotries (2021-12-08 05:16:25)

Offline

#2 2021-12-08 04:52:39

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Is there any way to modify a package's "Required By" field?

But it is not required by rkhunter: it says as much in the description.

What problem are you actually trying to solve?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2021-12-08 05:03:50

ricotries
Member
Registered: 2021-12-08
Posts: 3

Re: [SOLVED] Is there any way to modify a package's "Required By" field?

Basically, avoiding some packages from being listed as orphans when they were installed separately on purpose.

If I executed

pacman -Qdt

it will be listed as a "real orphan" since technically no other package depends on it, but yet I did install it to be used by a utility from another package.

Offline

#4 2021-12-08 05:05:54

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,659
Website

Re: [SOLVED] Is there any way to modify a package's "Required By" field?

If you want skdet to be a dependency of rkhunter, you need to edit the rkhunter file in the pacman database.  But this will revert every update of rkhunter.  Other option is to build your own rkhunter package with skdet listed as a dependency - but again, you will need to keep up with the Arch packages.

Offline

#5 2021-12-08 05:07:49

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Is there any way to modify a package's "Required By" field?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2021-12-08 05:16:07

ricotries
Member
Registered: 2021-12-08
Posts: 3

Re: [SOLVED] Is there any way to modify a package's "Required By" field?

Not 100% what I was looking for, but it helps and I avoid removing packages I deem appropriate.

@Allan I will definitely do more research into what you mentioned to have a better understanding of the package database.

Thank you!

Offline

#7 2021-12-08 05:28:29

Xyne
Forum Fellow
Registered: 2008-08-03
Posts: 6,965
Website

Re: [SOLVED] Is there any way to modify a package's "Required By" field?

Another option is to create an empty metapackage that serves no purpose other than listing the packages that you want as dependencies. It's a kludge, but it works.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

Board footer

Powered by FluxBB