Skip to content

Pacman - Recovery after a system freeze mid-update

Hey, I had a system freeze mid update. Since some of my packages seemed to have gotten messed up, I'm trying to force a reinstall of packages with:

pacman -Qqn > pkglist.txt
pacman -S $(< pkglist.txt)

Unfortunately, I'm running into several packages that were part of the upgrade hitting an issue where they refuse to install because the files already exist on the filesystem. Trying to remove the package from the system doesn't remove its files. At the moment I'm forced to just manually delete files so that the affected packages can be installed again, but there has to be an easier way, right? Is there an easier way? Is there a method of forcing pacman to overwrite files that already exist on the filesystem?

7 points10 comments
Open on Reddit
About this post
Posted
Archived
Score
7 · 89% up
Kind
Text
ID
1cbvtle

Author

6
posts
74
comments
0
media
View profile
No comments archived yet. Reddit counts 10.

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.