You are not logged in.
Pages: 1
https://bbs.archlinux.org/viewtopic.php … 09#p833409 v. https://bbs.archlinux.org/viewtopic.php … 26#p965126
Does filesystem package need a special treatment? Or is it a case where the experts don't agree on what's right?
Offline
I think it depends on the package in question. Forcing packages like initscripts is bad because it will overwrite inittab rendering your system unable to boot. filesystem as well since fstab will be changed and it might not reflect the partition scheme or mounting scheme that you need to be able to boot in.
however, if I have messed up my window manager for some reason -- I can force install it to get back to default. I can then always log into CLI mode and change the wm configuration the way I want.
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
If I understand it correctly, when using --force, pacman doesn't create .pacnew files, but simply overwrites the existing files, right? This means I have to make a copy of the files in question first and edit the new files accordingly.
Any idea how e.g. /var/lib/pacman/local/gnutls-2.12.7-1/files file might have gone missing? Does this constitute pacman database corruption?
Offline
No, we still honor backup files on a force operation. That's if, of course, the files metadata fragment still exists.
Ah, so that's why using '--force' on e.g. filesystem package when the 'files' part of metadata is missing would be ... unfortunate :-)
Now I get it, thank you very much.
Offline
My answer is never use --force.
Offline
My answer is never use --force.
I believe you mean that as a general rule to people (especially users unfamiliar with the system), correct? In my opinion, there are plenty of acceptable situations to pass the force option, and to implement something and then condemn its use seems a bit odd to me.
Offline
I've seen a few people having problems with /var/lib/pacman/local/<somepackage>/files missing - can anyone explain how could this happen on its own? I know that Pacman is a hungry beast, but ...
Offline
I've seen a few people having problems with /var/lib/pacman/local/<somepackage>/files missing - can anyone explain how could this happen on its own? I know that Pacman is a hungry beast, but ...
Hmm, files missing from the local db? That has to be some sort of pacman bug (or just user error, before we go off blaming Allan). Where did you see people having those types of problems?
EDIT: You were probably expecting an answer from Allan, but now you get to deal with me instead.
Last edited by cesura (2011-08-19 21:36:34)
Offline
Allan wrote:My answer is never use --force.
I believe you mean that as a general rule to people (especially users unfamiliar with the system), correct? In my opinion, there are plenty of acceptable situations to pass the force option, and to implement something and then condemn its use seems a bit odd to me.
My opinion is there is never a good time to use --force. If you think you have to use force, then there is probably another issue that you should be fixing first.
Offline
Where did you see people having those types of problems?
See the links in my first post.
Last edited by karol (2011-08-19 21:42:17)
Offline
karol wrote:I've seen a few people having problems with /var/lib/pacman/local/<somepackage>/files missing - can anyone explain how could this happen on its own? I know that Pacman is a hungry beast, but ...
Hmm, files missing from the local db? That has to be some sort of pacman bug (or just user error, before we go off blaming Allan). Where did you see people having those types of problems?
Most (all?) of these are from people losing power during an update or having some sort of filesystem corruption.
Offline
My opinion is there is never a good time to use --force. If you think you have to use force, then there is probably another issue that you should be fixing first.
I can agree with there most likely being an underlying issue when --force is used, but if it can fix the problem without any ramifications, I see no reason not to use it (when used wisely, of course).
itsbrad212 wrote:Hmm, files missing from the local db? That has to be some sort of pacman bug (or just user error, before we go off blaming Allan). Where did you see people having those types of problems?
Most (all?) of these are from people losing power during an update or having some sort of filesystem corruption.
I would consider that a bug then. Not an entirely important one, as it occurs fairly scarcely, but still one worth addressing. Being able to recover from interruption without a single moment's notice is a critical part of software design. I know, I know, "patches welcome."
itsbrad212 wrote:Where did you see people having those types of problems?
See the links in my first post.
Ah, apologies, I see now.
Last edited by cesura (2011-08-19 22:08:49)
Offline
A case where forcing initscripts upgrade is OK https://bbs.archlinux.org/viewtopic.php … 06#p972606
liblzma problems:
https://bbs.archlinux.org/viewtopic.php … 21#p980121
https://bbs.archlinux.org/viewtopic.php … 15#p980915
Offline
Pages: 1