You are not logged in.
I installed a package through the terminal, and the package had a lot of dependantcys. Most of the dependancys were unnessesary, but pacman wouldn't let me pick and choose which dependancys I wanted included with the initial package. So I thought, I would install the package and remove all of the unnesessary dependancys afterwards. Well, it wouldn't work.
An example. I can run ksysguard from the terminal. But, when I do a 'sudo pacman -R ksysguard' pacman fails to locale the package and tells me it's uninstalled, even though it just ran. How can I fix this problem? I have TONS of packages that I would like to remove, but can't because the only way to is too remove the initial package that installed them, making the proccess pointless.
Last edited by TriforceLZG (2012-09-14 20:10:50)
Offline
The correct way to remove dependencies is to rebuild the package without them, not randomly rip them out after pacman has installed them.
Executable names and package names are frequently different - the pacman man page will tell you how to identify the package to which ksysguard belongs.
Offline
https://wiki.archlinux.org/index.php/Pa … g_packages
# pacman -Rdd fooI have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).
Offline
Arch, being a binary distro, isn't really made for this. If you want this sort of functionality, look into Gentoo and USE flags.
Offline
Note that you can't remove ksysguard without removing very large and basic chunks of KDE...
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
Arch, being a binary distro, isn't really made for this. If you want this sort of functionality, look into Gentoo and USE flags.
I disagree with this. It's easy to make changes to PKGBUILDs and recompile a package to suit your needs. There's no need to switch to another distro.
I don't use KDE though, so I don't know how relevant this is the OP's situation.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
I think it would be better (and easier) to switch DE. ksysguard is part of kdebase-workspace. I can't believe it would be worth the trouble building this to get rid of ksysguard - even if that is doable in any straightforward way. (It isn't as though the PKGBUILD includes --enable-ksysguard and you can just delete that and leave your computer to compile it.)
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
Pres wrote:Arch, being a binary distro, isn't really made for this. If you want this sort of functionality, look into Gentoo and USE flags.
I disagree with this. It's easy to make changes to PKGBUILDs and recompile a package to suit your needs. There's no need to switch to another distro.
I don't use KDE though, so I don't know how relevant this is the OP's situation.
For a single package or a few packages, yes this would make sense. From the OP's post though, it sounds like he wants to do this with pretty much the entire system.
Offline
To tomk's point, As you read the pacman manual, understand you need to know the full path of the program Here is how it is done:
ewaller@odin:~[127] 1004 %pacman -Qo $(which ksysguard)
/usr/bin/ksysguard is owned by kdebase-workspace 4.9.1-3
ewaller@odin:~ 1005 %Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
FYI, you don't need the $(which ....) for anything that's in your $PATH.
Offline
FYI, you don't need the $(which ....) for anything that's in your $PATH.
I did not know that
Thanks
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
Thanks for the answers. By the way I am not even using KDE. Thats why I wanted to remove it.
Offline
If there is a package with "unnecessary dependencies" then you should report it on the package page and those dependencies should be removed.
If they aren't really "unnecessary" for the build that is done by the package, then you should, as mentioned, create your own PKGBUILD and install it that way. And, even better, add it to the AUR so others can take advantage of your work.
Offline
You may not be using KDE, but apparently some package that you installed pulled in some kde-related dependencies - hence the presence of ksysguard on your system.
pacman can provide all the information you need, read the man page thoroughly for full details.
Offline