You are not logged in.

#1 2018-06-02 05:30:26

eleius
Member
Registered: 2017-04-25
Posts: 28

[solved] pacman "force" and "overwrite" options

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

#2 2018-06-02 05:31:52

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,544

Re: [solved] pacman "force" and "overwrite" options

Read the man page, figure out what --overwrite is.

Online

#3 2018-06-02 06:06:51

eleius
Member
Registered: 2017-04-25
Posts: 28

Re: [solved] pacman "force" and "overwrite" options

Very useful, thanks so much.

Offline

#4 2018-06-02 06:15:03

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [solved] pacman "force" and "overwrite" options

Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2018-06-02 06:23:08

eleius
Member
Registered: 2017-04-25
Posts: 28

Re: [solved] pacman "force" and "overwrite" options

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

#6 2018-06-02 06:31:00

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [solved] pacman "force" and "overwrite" options

See https://bbs.archlinux.org/viewtopic.php?id=237614

A glob is just a pattern for the shell; eg., /etc/file*


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2021-07-07 13:13:36

sixtyfive
Member
Registered: 2021-07-07
Posts: 1

Re: [solved] pacman "force" and "overwrite" options

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

#8 2021-07-07 13:35:20

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,672

Re: [solved] pacman "force" and "overwrite" options

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.

Offline

Board footer

Powered by FluxBB