我将要安装软件包,但是由于该文件已存在,它一直失败。由于--force
选项已从pacman中删除。我一直在尝试使用--overwrite
选项覆盖目录,但是不幸的是,该选项也无法正常工作
我运行的命令:sudo pacman -S namcap --overwrite /usr/lib/python3.7/site-packages/elftools/elf/*
....
python-pyelftools: /usr/lib/python3.7/site-packages/elftools/elf/notes.py exists in filesystem
python-pyelftools: /usr/lib/python3.7/site-packages/elftools/elf/relocation.py exists in filesystem
python-pyelftools: /usr/lib/python3.7/site-packages/elftools/elf/sections.py exists in filesystem
python-pyelftools: /usr/lib/python3.7/site-packages/elftools/elf/segments.py exists in filesystem
python-pyelftools: /usr/lib/python3.7/site-packages/elftools/elf/structs.py exists in filesystem
答案 0 :(得分:2)
pacman -S <package> --overwrite=*