You are not logged in.
Pages: 1
Topic closed
I noticed using pacman's --force option results in the message:
warning: option --force is deprecated; use --overwrite instead
So I tried replacing the option and the result is:
pacman --overwrite -S MYPACKAGE
error: invalid option '--overwrite'
pacman -S --overwrite MYPACKAGE
error: no targets specified
man pacman says overwrite requires a <glob> argument - what is that?
The Arch Wiki still advises to use --force btw (https://wiki.archlinux.org/index.php/pacman)
Can you help me?
Last edited by eleius (2018-06-02 09:26:48)
Offline
Read the man page, figure out what --overwrite is.
Online
Very useful, thanks so much.
Offline
Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.
Offline
I was being sarcastic. I have obviously already read the man page as I mentioned it in my question. So much for the "newbie corner".
Nevermind, feel free to delete my question.
Offline
See https://bbs.archlinux.org/viewtopic.php?id=237614
A glob is just a pattern for the shell; eg., /etc/file*
Offline
After google brought me here first, where neither the sarcasm nor the answers to it were helpful, I found [this StackExchange answer](https://unix.stackexchange.com/a/549419/131503) next. The solution is:
```
sudo pacman -S --overwrite \* <package_name>
```
(Edit: 2021 called to said that this forum really needs to learn about Markdown)
Last edited by sixtyfive (2021-07-07 13:18:18)
Offline
BBCode is a thing, it's under every post box, necrobumping a solved thread for what amounts to be sub-optimal advice (there's a reason --overwrite replaced --force and misusing --overwrite to do the same as a --force) is generally not a good idea.
https://gitlab.archlinux.org/archlinux/ … ro-bumping
Closing.
Online
Pages: 1
Topic closed