You are not logged in.

#1 2012-09-14 20:10:22

TriforceLZG
Member
Registered: 2012-09-02
Posts: 6

Can run installed packages from terminal but pacman fails to find them

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

#2 2012-09-14 20:42:48

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Can run installed packages from terminal but pacman fails to find them

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

#3 2012-09-14 20:51:32

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: Can run installed packages from terminal but pacman fails to find them


"How to Succeed with Linux"

I 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

#4 2012-09-14 20:58:38

Pres
Member
Registered: 2011-09-12
Posts: 423

Re: Can run installed packages from terminal but pacman fails to find them

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

#5 2012-09-14 22:35:39

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: Can run installed packages from terminal but pacman fails to find them

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

#6 2012-09-14 23:16:01

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,737
Website

Re: Can run installed packages from terminal but pacman fails to find them

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.


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

#7 2012-09-14 23:46:14

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: Can run installed packages from terminal but pacman fails to find them

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

#8 2012-09-17 14:25:54

Pres
Member
Registered: 2011-09-12
Posts: 423

Re: Can run installed packages from terminal but pacman fails to find them

WorMzy wrote:
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

#9 2012-09-17 15:02:22

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,741

Re: Can run installed packages from terminal but pacman fails to find them

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

#10 2012-09-17 15:10:27

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Can run installed packages from terminal but pacman fails to find them

FYI, you don't need the $(which ....) for anything that's in your $PATH.

Offline

#11 2012-09-17 16:05:45

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,741

Re: Can run installed packages from terminal but pacman fails to find them

tomk wrote:

FYI, you don't need the $(which ....) for anything that's in your $PATH.

I did not know that smile  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

#12 2012-09-17 17:13:35

TriforceLZG
Member
Registered: 2012-09-02
Posts: 6

Re: Can run installed packages from terminal but pacman fails to find them

Thanks for the answers. By the way I am not even using KDE. Thats why I wanted to remove it.

Offline

#13 2012-09-17 18:26:35

jdarnold
Member
From: Medford MA USA
Registered: 2009-12-15
Posts: 485
Website

Re: Can run installed packages from terminal but pacman fails to find them

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

#14 2012-09-17 18:27:41

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Can run installed packages from terminal but pacman fails to find them

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

Board footer

Powered by FluxBB