You are not logged in.

#1 2018-06-01 23:27:18

f4hy
Member
From: Pittsburgh Pa
Registered: 2009-02-08
Posts: 55

Trouble getting the new pacman --overwrite to work

I tried to upgrade and found that pyhton-html5lib was failing to update due to messages like

python-html5lib: /usr/lib/python3.6/site-packages/html5lib/treewalkers/genshi.py exists in filesystem

So great, I know pacman has a new option. I want to overwrite those files so I am trying

sudo pacman -Sy python-pip --overwrite=/usr/lib/python3.6/site-packages/html5lib/treewalkers/*

but then I get the exact same messages. I have tried different formats of how to put in the globbed files, but nothing seems to work.

Could someone give an example of how the new pacman --overwrite works?

Offline

#2 2018-06-01 23:32:52

progandy
Member
Registered: 2012-05-17
Posts: 5,190

Re: Trouble getting the new pacman --overwrite to work

you should specify the path without a leading slash.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#3 2018-06-02 00:00:30

N_BaH
Member
Registered: 2015-12-30
Posts: 84

Re: Trouble getting the new pacman --overwrite to work

man pacman shows no equal sign :

--overwrite <glob>

Offline

#4 2018-06-02 00:35:07

f4hy
Member
From: Pittsburgh Pa
Registered: 2009-02-08
Posts: 55

Re: Trouble getting the new pacman --overwrite to work

progandy wrote:

you should specify the path without a leading slash.

Thank you. It was the leading slash that was causing everything I tried not to work. Odd that it should be without the leading slash, but ok. Thanks!

Offline

#5 2018-06-02 00:41:30

progandy
Member
Registered: 2012-05-17
Posts: 5,190

Re: Trouble getting the new pacman --overwrite to work

f4hy wrote:

Odd that it should be without the leading slash, but ok. Thanks!

The option works similar to NoUpgrade and NoExtract in pacman.conf, only a single phrase is missing in the manpage that is there for those options.

NoUpgrade = file ...
           All files listed with a NoUpgrade directive will never be touched
           during a package install/upgrade, and the new files will be
           installed with a .pacnew extension. These files refer to files in
           the package archive, so do not include the leading slash (the
           RootDir) when specifying them.
Shell-style glob patterns are
           allowed. It is possible to invert matches by prepending a file with
           an exclamation mark. Inverted files will result in previously
           blacklisted files being whitelisted again. Subsequent matches will
           override previous ones. A leading literal exclamation mark or
           backslash needs to be escaped.

Last edited by progandy (2018-06-02 00:42:58)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#6 2018-06-02 00:42:20

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,520
Website

Re: Trouble getting the new pacman --overwrite to work

Was there a typo in your first post: the conflict was with python-html5lib, but you used --overwrite with python-pip.

Also, please be sure to do a `pacman -Su` to complete any other upgrades and in the future avoid ever using -Sy without also using 'u'.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#7 2018-06-03 05:08:41

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: Trouble getting the new pacman --overwrite to work

Well... https://lists.archlinux.org/pipermail/p … 22515.html

There's no especial reason to force the / here.


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

Board footer

Powered by FluxBB