You are not logged in.

#1 2024-07-29 22:13:57

eesa
Member
Registered: 2024-03-29
Posts: 5

Forceful repeat of the install process

Hello,

I am wondering how to forcefully repeat the install process, including writing files that still seem intact.

The reason I'm asking about this is me (late at night, while tired) typed the wrong command and accidentally rm -rf'd my /usr/share/glib-2.0/schemas, while attempting to delete two schemas in particular. As such, I tried to reinstall gnome, gdm, and all GTK applications to restore the schemas, however, no matter what I do, I am unable to force these files to be created.

How can I force a complete reinstall of the packages, including installing schemas (or is there another way to do this)?

Offline

#2 2024-07-29 22:53:27

mpan
Member
Registered: 2012-08-01
Posts: 1,344
Website

Re: Forceful repeat of the install process

pacman -S reinstalls all files, even those already present in the file system. In fact `pacman -S` unconditionally removes package’s files before (re)installation.⁽¹⁾

Files in “/usr/share/glib-2.0/schemas/” are owned by their respective packages. Note thowever, that “/usr/share/glib-2.0/schemas/gschemas.compiled” is generated dynamically by “Compiling GSettings XML schema files” hook.⁽²⁾ Possibly glib2 is damaged.

Even if reinstalling glib2 helps, I would strongly recommend running `sudo pacman -Qkq` to find any damage.
____
⁽¹⁾ Run with `--debug` option to see full log.
⁽²⁾ “/usr/share/libalpm/hooks/glib-compile-schemas.hook” owned by glib2.

Last edited by mpan (2024-07-29 22:54:05)


Sometimes I seem a bit harsh — don’t get offended too easily!

Offline

Board footer

Powered by FluxBB