Artix Linux Forum

Artix Linux => Applications & Software => Topic started by: mardiyah on 24 April 2022, 10:05:14

Title: To force download, reinstall a package
Post by: mardiyah on 24 April 2022, 10:05:14
How do we have pacman to force download, reinstall a package, being it is installed now of the same latest version ?
Title: Re: To force download, reinstall a package
Post by: u0 on 24 April 2022, 10:48:01
1)
Quote
ls /var/cache/pacman/pkg/ | grep -a word from package name
rm /var/cache/pacman/pkg/package_file_name

2)
Install pacman-contrib package
Delete cache versions of installed and uninstalled packages, except for the most recent three, by default:
Quote
paccache -r

3)
Quote
pacman -Scc
Choose remove ALL files from cache
Title: Re: To force download, reinstall a package
Post by: cat herders of linux on 24 April 2022, 12:58:18
How do we have pacman to force download, reinstall a package, being it is installed now of the same latest version ?
usually if you

suddo pacman -S [ pckage name]  it will reinstall withiut being forced

for example if you run

sudo pcmn -S base-devel

it will install all the packages necessary to build pckages from source.  it will also promt you as to wich ones you want to install and ten you can choose the ALL option andd it will reinstall them even if you have the most up to date versions.

force is not generally necesssary.  why do you wish to use force?