You are not logged in.

#1 2025-10-01 19:09:26

CodeCraft
Member
Registered: 2022-09-07
Posts: 13

[Solved]How to make pacman think a package is installed

Well I don't know how to phrase this but here goes.

For a while the llvm package is not updated, and since its already flaged there is nothing I can do except compile the latest version my self, which did.

But pacman is not aware of it and wants to install the llvm-20 something which is on the offical repo , is there a way to make pacman think those package are installed.

I tried ignorePkg in conf but rust wants lld installed.

While I could do a makepkg, but I already have compiled llvm and installed using install command , and recompiling will take a very long time


Is there a way to solve this like faking a package or something

All help is appreciated.

Regards Codecraft

Last edited by CodeCraft (2025-10-01 20:23:06)

Offline

#2 2025-10-01 19:39:13

trebur
Member
Registered: 2014-12-14
Posts: 2

Re: [Solved]How to make pacman think a package is installed

You could create a dummy PKGBUILD file that has a Provides=('llvm') line, but which effectively does nothing,. Whether this is actually a sensible idea or not is very much left as an exercise for the reader.

Offline

#3 2025-10-01 19:55:25

loqs
Member
Registered: 2014-03-06
Posts: 18,621

Re: [Solved]How to make pacman think a package is installed

CodeCraft wrote:

Well I don't know how to phrase this but here goes.

For a while the llvm package is not updated, and since its already flaged there is nothing I can do except compile the latest version my self, which did.

You could have updated the llvm PLKGBUILD to 21.1.2, likewise for clang plus lld and rebuild system packages that depend on llvm-libs.

CodeCraft wrote:

I tried ignorePkg in conf but rust wants lld installed.

Why is that an issue?


trebur wrote:

You could create a dummy PKGBUILD file that has a Provides=('llvm') line, but which effectively does nothing

See the second options under pacman.8 TRANSACTION OPTIONS (APPLY TO -S, -R AND -U) which is not a suggestion Codecraft should use it.

Last edited by loqs (2025-10-01 19:55:48)

Offline

#4 2025-10-01 19:55:44

CodeCraft
Member
Registered: 2022-09-07
Posts: 13

Re: [Solved]How to make pacman think a package is installed

Fair,I will keep an eye on the official repo just incase they update the version and then remove mine

Thanks

Offline

#5 2025-10-01 19:56:38

ayekat
Member
Registered: 2011-01-17
Posts: 1,626

Re: [Solved]How to make pacman think a package is installed

How are you installing LLVM, though? Just `make install` style, directly into your system, untracked? That seems like it'd be a mess to clean up later.

Have you considered packaging your LLVM build as a real LLVM package? Would solve two problems IMO.

--edit oh wow, should hit refresh more often…

Last edited by ayekat (2025-10-01 19:57:07)


pkgshackscfgblag

Offline

#6 2025-10-01 20:05:20

CodeCraft
Member
Registered: 2022-09-07
Posts: 13

Re: [Solved]How to make pacman think a package is installed

ayekat wrote:

How are you installing LLVM, though? Just `make install` style, directly into your system, untracked? That seems like it'd be a mess to clean up later.

Have you considered packaging your LLVM build as a real LLVM package? Would solve two problems IMO.

--edit oh wow, should hit refresh more often…


True i also did not see other reply except for faking the pkgs , only now did I see them and no they llvm are installed in /opt/llvm and the install_manafest is also tracked.

While yes editing the PKGBUILD should work , i already have built the package and rebuilding it very time consuming.

Offline

#7 2025-10-01 20:11:57

loqs
Member
Registered: 2014-03-06
Posts: 18,621

Re: [Solved]How to make pacman think a package is installed

If you only need rust as a makedepends for some PKGBUILD you could clean chroot build that package as is it should at most need llvm-libs as a runtime dependency.

Offline

#8 2025-10-01 20:14:28

CodeCraft
Member
Registered: 2022-09-07
Posts: 13

Re: [Solved]How to make pacman think a package is installed

loqs wrote:

pacman.8 TRANSACTION OPTIONS (APPLY TO -S, -R AND -U) which is not a suggestion Codecraft should use it.


Okay that better i did not know assuming installed depends was possible

Thanks

Last edited by CodeCraft (2025-10-01 20:20:18)

Offline

Board footer

Powered by FluxBB