You are not logged in.
Pages: 1
Is there a command like purge ? I have files in my system which i uninstalled the package. But i saw some errors and causing problems because the files is still there.
For example: sddm and lightdm
When i run pacman -Qkk i saw the warning/error about them
Last edited by jojo06 (2024-01-10 17:12:37)
Offline
But i saw some errors and causing problems because the files is still there
Can we also see these errors?
When i run pacman -Qkk i saw the warning/error about them
-k, --check
Check that all files owned by the given package(s) are present on the system. If packages are not specified or filter flags are not provided, check all installed packages. Specifying this option twice will perform more detailed file checking (including permissions, file sizes, and modification times) for packages that contain the needed mtree file.
<49,17,III,I> Fama di loro il mondo esser non lassa;
<50,17,III,I> misericordia e giustizia li sdegna:
<51,17,III,I> non ragioniam di lor, ma guarda e passa.
Offline
In addition to "what errors" also tell us "what files". And while we're at it, what is "purge"?
You refer to files left from packages you have uninstalled which would only be there if you were not using the -n flag for package removals (which I'd argue one should almost always do ... I'd say the "default" command to remove a package should be `pacman -Rsn $pkg`).
But then you go on to refer to packages that you presumably have installed as `pacman -Qkk ...` will not provide information about uninstalled packages. In other words, you can't get warnings about files from uninstalled packages by running pacman -Qkk on sddm or lightdm.
So what's really going on?
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
<EDIT>
And while we're at it, what is "purge"?
I think jojo06 is referring to sudo apt purge , which made me remember about Pacman's Rosetta.
</EDIT>
`pacman -Rsn $pkg`
Yup!
Last edited by d.ALT (2024-01-09 15:12:33)
<49,17,III,I> Fama di loro il mondo esser non lassa;
<50,17,III,I> misericordia e giustizia li sdegna:
<51,17,III,I> non ragioniam di lor, ma guarda e passa.
Offline
Well, the problem was not only with these files and I did not mention the errors, because there was no need to troubleshoot.
Check that all files owned by the given package(s) are present on the system. If packages are not specified or filter flags are not provided, check all installed packages. Specifying this option twice will perform more detailed file checking (including permissions, file sizes, and modification times) for packages that contain the needed mtree file.
Does this mean the problem can be ignored ?
@Trilby
You refer to files left from packages you have uninstalled which would only be there if you were not using the -n flag for package removals (which I'd argue one should almost always do ... I'd say the "default" command to remove a package should be `pacman -Rsn $pkg`).
Yes, exactly. I thought about it before, but unfortunately it is done. Im looking the errors but cannot see them now. Like i said its not about current/once error. I need to learn it. Now im also using -Rsnc
About what is really going on; that is it. Now i cannot see it in the output of `pacman -Qkk` but I saw the files for both sddm and lightdm. Output for a simple locate: (it exist in other places too):
/home/guns/yay/src/gopath/pkg/mod/github.com/!morganamilo/go-srcinfo@v1.0.0/testdata/srcinfos/good/lightdm-pantheon-greeter-git
/usr/share/augeas/lenses/dist/lightdm.aug
/usr/share/augeas/lenses/dist/tests/test_lightdm.aug
/usr/share/icons/Papirus/16x16/apps/lightdm-gtk-greeter-settings.svg
/usr/share/icons/Papirus/16x16/apps/lightdm-settings.svg
/usr/share/icons/Papirus/22x22/apps/lightdm-gtk-greeter-settings.svg
/usr/share/icons/Papirus/22x22/apps/lightdm-settings.svg
/usr/share/icons/Papirus/24x24/apps/lightdm-gtk-greeter-settings.svg
/usr/share/icons/Papirus/24x24/apps/lightdm-settings.svg
/usr/share/icons/Papirus/32x32/apps/lightdm-gtk-greeter-settings.svg
/usr/share/icons/Papirus/32x32/apps/lightdm-settings.svg
/usr/share/icons/Papirus/48x48/apps/lightdm-gtk-greeter-settings.svg
/usr/share/icons/Papirus/48x48/apps/lightdm-settings.svg
/usr/share/icons/Papirus/64x64/apps/lightdm-gtk-greeter-settings.svg
/usr/share/icons/Papirus/64x64/apps/lightdm-settings.svg
/var/log/lightdm
Purge like @d.ALT said, -Rsn stuff from other OS. `--purge` because its uninstalled pacman cant see theese packages, sadly.
And actually `whats going on ?` -well spotted btw - i am configuring hyprland. Noticed some misconfiguration causing some problems. Not correct and straight now. The programs that used to work now do not. One of them is **xprop, well than realized xorg/xprop not for me anymore (or problematic). And same problem with swaymsg. And so on, I thought, I need to learn system management for it. Because even i delete/remove some stuff; another problems will occur and conflictings will be.
**Also while searching to solve xprop issue saw this topic and i saw this topic and doubt i have broken packages as well as conflicting stuff: https://bbs.archlinux.org/viewtopic.php?id=251835
So you could say I'm doing a general weeding/cleaning; maintenance and repair
Thank you for your help and interest
Offline
Output for a simple locate
I seriously don't know what you're talking about because you're not sharing the actual error, but locate w/o "-e" will show you dated information, ie. files that don't actually exist anymore.
If you want any more help, post the actual errors.
Offline
... there was no need to troubleshoot.
Clearly there is a need, or you would not have started a thread here. I gather you mean that you are not looking for a solution to a specific instance of some problem, but rather a general best practice to avoid similar problems. However, it should be obvious that we cant give advice on a practice to avoid a type of problem if we've not even identified what the problem was. The specific error(s) that you have not shared could be used as an example of the variety of problem you seek a general solution for. In the absence of that there's nothing to do here.
Does this mean the problem can be ignored?
You mean that "problem" that you opted not to tell us anything about because you didn't think there was a need to troubleshoot? I'll have to consult my crystal ball on that one and get back to you.
Now im also using -Rsnc
And where was that advised? I certainly wouldn't recommend it.
About what is really going on; that is it.
What is "that"??
Output for a simple locate: (it exist in other places too):
Um... what?? What on earth does random "locate" output have to do with anything else in this thread? What what is the "it" that exists in other places too? And if "it" is relevant, what are the "other places" it also exists in? You do realize we are not seeing what you see?
Noticed some misconfiguration causing some problems.
WHAT problems? For christ sake this is a tech forum, not a dentistry forum, but this is like pulling teeth.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Output for a simple locate
I seriously don't know what you're talking about because you're not sharing the actual error, but locate w/o "-e" will show you dated information, ie. files that don't actually exist anymore.
If you want any more help, post the actual errors.
Well this is the actual error. Thos was output for `locate lightdm` and `locate w/o "-e"` did not give me output for lightdm or much:
/usr/include/boost/mpl/aux_/preprocessed/mwcw/or.hpp
/usr/lib/go/src/cmd/compile/internal/objw/objw.go
/usr/lib/python3.11/site-packages/OpenGL/raw/osmesa
/usr/lib/python3.11/site-packages/OpenGL/raw/osmesa/__init__.py
/usr/lib/python3.11/site-packages/OpenGL/raw/osmesa/__pycache__
/usr/lib/python3.11/site-packages/OpenGL/raw/osmesa/_types.py
/usr/lib/python3.11/site-packages/OpenGL/raw/osmesa/mesa.py
/usr/lib/python3.11/site-packages/OpenGL/raw/osmesa/__pycache__/__init__.cpython-311.opt-1.pyc
/usr/lib/python3.11/site-packages/OpenGL/raw/osmesa/__pycache__/__init__.cpython-311.pyc
/usr/lib/python3.11/site-packages/OpenGL/raw/osmesa/__pycache__/_types.cpython-311.opt-1.pyc
/usr/lib/python3.11/site-packages/OpenGL/raw/osmesa/__pycache__/_types.cpython-311.pyc
/usr/lib/python3.11/site-packages/OpenGL/raw/osmesa/__pycache__/mesa.cpython-311.opt-1.pyc
/usr/lib/python3.11/site-packages/OpenGL/raw/osmesa/__pycache__/mesa.cpython-311.pyc
/usr/lib/ruby/gems/3.0.0/doc/fiddle-1.1.0/ri/Fiddle/MemoryView/obj-i.ri
/usr/share/blender/4.0/scripts/addons/viewport_vr_preview/operators.py
/usr/share/brltty/Input/hw/one.ktb
/usr/share/doc/ImageMagick-7/www/opencl.html
/usr/share/doc/ImageMagick-7/www/openmp.html
@Trilby
Clearly there is a need, or you would not have started a thread here. I gather you mean that you are not looking for a solution to a specific instance of some problem, but rather a general best practice to avoid similar problems. However, it should be obvious that we cant give advice on a practice to avoid a type of problem if we've not even identified what the problem was. The specific error(s) that you have not shared could be used as an example of the variety of problem you seek a general solution for. In the absence of that there's nothing to do here.
You mean that "problem" that you opted not to tell us anything about because you didn't think there was a need to troubleshoot? I'll have to consult my crystal ball on that one and get back to you.
Actually, you are right. I did not mention the error because i do not know either. Because there is none spesicifically, but the general of it is, my goal is install and setup the hyprland properly. I dont know if i should uninstall the sway or not. And I mentioned something about it in my last comment. However, I listed on bookmarks that `to do` here it goes:
1-) xprop is not working i have some broken packages: without some mismatches (timestamps, permissions) or with it should i post the output for `pacman -Qkk` ?
2-) mako used to list the messages from discord and it was stayed there until i dismissed it, now it appears for a few seconds and disappears if nobody mentioned me. This way its actually better but is this general working logic or problem ?
3-) Should I uninstall xrandr for xwayland ?
4-) From hyprland website, I installed the requirements but I see not all necessary files installed, and mismatched/misconfigured stuff is on. Because each time im noticing something is either missing or with each im configuring, stuff is changing and getting better. But im not sure, what else do i need to do. Is there a config test or something for this ?
Example: swaybg:
[swaybg-1.2.0/main.c:289] Could not find config for output HDMI-A-1 (Samsung Electric Company S24F350 H4ZN200332)
5-) I was uninstalled nvidia but now it appears and Hyprland warns me for, make sure you are followed the `http://wiki.hyprland.org/hyprland-wiki/pages/Nvidia/#how-to-get-hyprland-to-possibly-work-on-nvidia` should i follow the wiki or just leave it like that ?
About -Rsnc in the forum its advised for when there may it can be conflicting packages. But of course im checking for will delete packages and compare with -Rsn
Um... what?? What on earth does random "locate" output have to do with anything else in this thread?
Not random, uninstalled packages, for this case its lightdm. And I have another such files too. Which is uninstalled but existing files and give some errors/warnings. And not for keeping files, I was trying to find out a command to remove these files.
What what is the "it" that exists in other places too?
Lightdm for this case, uninstalled packages in general.
And if "it" is relevant, what are the "other places" it also exists in? You do realize we are not seeing what you see?
I dont know how to explain further than this but this is my best. There is nothing else. I didnt memorize the locations but that was the problem. I installed some packages before then uninstalled but i still see the files, that were not removed. And in some outputs it gave me errors/warnings about it. Maybe its seein it or rather its not working but files exist thats why. The main purpose was to keep my system clean and legit.
I didnt want to be a help vampire so i didnt list all this from the beginning and be like `lets fix this guys` And it was not single/once problem im having issue with at least for me. Like you said yes i started the topic for getting a solution but its generally system management, get proper configuration. I mean there is no spesific error that bothering me. Its general setup/install stuff with some issues. So I dont know what output I will be post. I want to ask again, is there a `test config` `check syntax` code for hyprland ? If im not wrong its exist for sway.
Thanks for your help and patience, much appreciated.
Offline
I think you misunderstand how locate works. Locate operates on a database that is sporadically updated assuming you're using the updatedb.timer. As mentioned by seth unless you use the -e switch or explicitly run updatedb after a removal operation you will see "wrong" information.
For all your other hyperland/sway question I suggest you open a new thread because this definitely has no relation with your original goal anymore.
FWIW to preempt a few things
1) xprop is a xorg server application, if you are running sway or hyprland for that matter it will only give you information on programs still running under xwayland, of the tools you mentioned discord is such an example that will still use xwayland and thus should work with xprop. Most other tools will not show up there
2) sounds like a discord implementation change, there was a discord update recently
3) You can, it generally doesn't matter since you won't be able to do much when the displays are controlled by a wayland compositor -- "some" tools (minecraft e.g.) actually wants to use xrandr to query for screen resolutions however, so you might break things for no discernible gain.
4) The entire point of sway or hyprland for that matter is that you mix and match components to your desires, you need to get way more clear here what "doesn't work"/"getting better" means
5) Post "pacman -Qs nvidia" in said new thread
Last edited by V1del (2024-01-10 08:14:57)
Offline
@V1del thank you so much for clarification. Yes, i need a new topic for this, im assuming its not existing files problem. I was thinking its so complex and conflict first i need to sort/clean the system, then go on or it can solve with this.
I think you misunderstand how locate works. Locate operates on a database that is sporadically updated assuming you're using the updatedb.timer. As mentioned by seth unless you use the -e switch or explicitly run updatedb after a removal operation you will see "wrong" information.
I see, i guess the updatedb worked with delay. Because i was able to see the error. But now its gone. And more than that, i guess there is no can do about existing files and i guess better not to tampering and avoid from break things. But i have /home seperated installation and can backup real quick. Im just eager for it because even inside of .config there is many stuff and here is my concern:
While i was using i3, whenever i just in my desktop (just fresh) i was seeing loading mouse cursor nonstop. My opinion was some broken/conflicted stuff or misconfiguration occurs and get able to load it properly. After opening terminal it was back to normal. And sometimes getting slow. And i want to know and learn what im working on. Otherwise its get super complicated. Would you please describe/tell me should i go on this problem in here or in new topic and exactly how im gonna ask this properly ?
1) Done! So i will ask correct packages needs to installed and others uninstalled. I research in the internet and hyprland website itself. Installed all dependencies, required ones. And all git pages list different stuff. So mainly i need a `list` for proper installation packages for hyprland and unsintalling the umm ? Its hard to ask and explain tho. Not about language i dont know how to ask this.
2) Solved than
3) But i need it, i may think to uninstall sway, hyprland (and maybe for all compenents about i3) and install it from strach. Thats how i learn tho. The linux and all. So i want to go for it.
4) I dont know yet, i noticed a few packages as i mentioned. How im gonna check i dont know either. Well, i can check all similar packages; installed or not. More than it, i have installed packages. Is there a listing stuff for not including system packages ? Otherwise 1300 package a lot to go on. It was 600-700 a few days ago. Isnt it too much ?
5) Will do
Thanks a lot V1del
Offline
Okay, now there are 5 clear questions (or at least 4, #5 is okay, but if that were presented as an OP, I'd seek clarification / details). But for the life of me I can't see any connection between these 5 questions any anything that came before in this thread as the OP only referenced "purge", a couple display managers, and "pacman -Qkk" output.
If you really want help with any of these 5 questions, I'd strongly recommend picking one at a time and opening a thread for each one.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
I thought if i can get rid of files belongs to uninstalled packages, it will solve the mix/conflicting issue. In other distrubitons there is purge command for delete everything belong to that.
Thanks for guidance. This one is solved.
Offline
Pages: 1