You are not logged in.

#1 2024-04-03 07:03:50

xtlc
Member
Registered: 2024-03-19
Posts: 12

[solved] how to uninstall a package I installed using packer

I think I am actively overlooking something, but after some time of trying I give up sad

My problem: I wanted to switch wps-office to german language and somehow read multiple times to install it using the Chinese version first, and switch to different languages later. So I wanted to uninstall my wps-office and this is where my troubles start:

pacman -Q does not list wps-office (or anything with wps in its name). But I am pretty sure I installed it from AUR, probably using "packer". So how can I uninstall a package I installed with packer? There is no -Q or similar option for packer and no remove flag (only for pacman).

Last edited by xtlc (2024-05-14 10:49:06)

Offline

#2 2024-04-03 08:58:46

impossibleveins23
Member
Registered: 2022-06-18
Posts: 92

Re: [solved] how to uninstall a package I installed using packer

* wps-office is in the AUR. You can't install it using pacman alone.
* To uninstall with pacman just execute pacman -R <PACKAGE_NAME>  (or better -Rcns to remove dependencies).
* pacman -Q will show info on the exact package name which in your case isn't installed on your system. You can pass -Qs to search "contains".

Just install it from AUR (IMO better with a helper like yay) with the language pack you need.

Last edited by impossibleveins23 (2024-04-03 08:59:04)

Offline

#3 2024-04-03 09:23:43

icar
Member
From: Catalunya
Registered: 2020-07-31
Posts: 463

Re: [solved] how to uninstall a package I installed using packer

* You can install it using pacman alone, you just need to build it first. See https://man.archlinux.org/man/makepkg.8
* Don't use -Rcns or you might end up uninstalling more than what you expect. RTFM https://man.archlinux.org/man/pacman.8# … PLY_TO_-R)

Don't recommend yay to someone that is this new, you will only lead them to a path of destruction.

Last edited by icar (2024-04-03 09:24:17)

Offline

#4 2024-04-03 09:47:06

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,927
Website

Re: [solved] how to uninstall a package I installed using packer

Mod note: Moving to AUR Issues.


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

#5 2024-04-03 20:56:23

xtlc
Member
Registered: 2024-03-19
Posts: 12

Re: [solved] how to uninstall a package I installed using packer

impossibleveins23 wrote:

* To uninstall with pacman just execute pacman -R <PACKAGE_NAME>  (or better -Rcns to remove dependencies).
* pacman -Q will show info on the exact package name which in your case isn't installed on your system. You can pass -Qs to search "contains".

* sudo pacman -Qs "wps" yields: local/ttf-wps-fonts 1.0-5    Symbol fonts required by wps-office.
* sudo pacman -R wps-office yields: error: target not found: wps-office

what am I missing here?

Offline

#6 2024-04-03 21:03:42

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,607
Website

Re: [solved] how to uninstall a package I installed using packer

Whatever you think you did with packer, you didn't.  If there was an installed package on your system, pacman would show it.  If nothing was installed, there is nothing to remove.  If it was installed without a package circumventing pacman, then still there is nothing to remove with pacman.

SIDE NOTE: `pacman -Q...` doesn't need to be run as root (i.e., w/ sudo).  There's no real harm in it, but it'd be best to avoid the habit of using "sudo" habitually - only use it when you know it's needed and you know why it's needed.

Last edited by Trilby (2024-04-03 21:05:52)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#7 2024-04-03 21:11:04

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,635

Re: [solved] how to uninstall a package I installed using packer

Check your pacman log, find out what you actually did.

Offline

#8 2024-04-03 21:14:54

xtlc
Member
Registered: 2024-03-19
Posts: 12

Re: [solved] how to uninstall a package I installed using packer

mhm ok ... so the fact that I see WPS spreadsheets and so on in my gnome Apps list does not mean I installed it using pacman? So I can just delete the folders and install it with pacman again? Or should I immediately install a multilanguage version?
* This does not seem to have any other language than English: https://aur.archlinux.org/packages/wps-office
* but this only speaks of Chinese: https://aur.archlinux.org/pkgbase/wps-office-cn

Offline

#9 2024-04-03 21:22:54

impossibleveins23
Member
Registered: 2022-06-18
Posts: 92

Re: [solved] how to uninstall a package I installed using packer

Perhaps you installed it as a flatpak?

Last edited by impossibleveins23 (2024-04-03 21:23:20)

Offline

#10 2024-04-04 05:59:40

xtlc
Member
Registered: 2024-03-19
Posts: 12

Re: [solved] how to uninstall a package I installed using packer

impossibleveins23 wrote:

Perhaps you installed it as a flatpak?

This. And it was called com.wps.Office. That's why I did not find it. Very thankful for your hint!

Offline

#11 2024-04-04 07:25:52

impossibleveins23
Member
Registered: 2022-06-18
Posts: 92

Re: [solved] how to uninstall a package I installed using packer

Cool. Please mark as solved if you consider this as solved.

Offline

Board footer

Powered by FluxBB