Skip to main content
Topic: To force download, reinstall a package (Read 1205 times) previous topic - next topic
0 Members and 3 Guests are viewing this topic.

To force download, reinstall a package

How do we have pacman to force download, reinstall a package, being it is installed now of the same latest version ?

Re: To force download, reinstall a package

Reply #1
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

 

Re: To force download, reinstall a package

Reply #2
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?
Cat Herders of Linux