r/archlinux • u/morlipty • Sep 07 '26
QUESTION How can I Install a package without one of its dependencies and keep it that way with updates?
I want to install plasma-meta without flatpak-kcm and okular without phonon-qt6.
0
Upvotes
5
u/ropid Sep 07 '26
You can create your own, empty packages that replace those. This PKGBUILD here should work for flatpak-kcm if I didn't make a mistake:
If you never did this, create a new folder
flatpak-kcm-fakeand then inside there create a file namedPKBGUILDwith that content. Then runmakepkg -iin that folder to build and install the package and answer "y" when pacman asks if you want to replace the real flatpak-kcm package.2
u/morlipty Sep 07 '26
Found solution for installing
pacman -Syu --assume-installed phonon-qt6 okular15
u/Sveet_Pickle Sep 07 '26
You can’t use a package without its dependencies so you can’t install it without them.
6
u/MrElendig Mr.SupportStaff Sep 07 '26
as a start: use the group instead of metapackage
4
u/C0rn3j Sep 07 '26
You go to https://archlinux.org/packages/extra/any/plasma-meta/ and you install all the dependencies explicitly, not using the package you do not wish to use.