Using pacman I can update package databases using the following command pacman -Sy or pacman -Fy what is the difference between this keys of pacman and what is better to use?
1 Answer
If you take a look at the man page you see that:
-Sis for installing packages.-Fis for querying the files database.-yrefreshes the package database, and it's valid with both-Sand-F.
The two major options (-S and -F) do very different things, but in both cases -y means "update the package database before you do anything else".
-
thank you, but me it is not quite clear what kind of database files are requested when using the -F key?Besha– Besha2022-10-16 16:22:49 +00:00Commented Oct 16, 2022 at 16:22
-
@Besha If you'll read the man page, it's querying the database of the repositories that hold the packages for a files that are owned by a specific package.Nasir Riley– Nasir Riley2022-10-16 19:54:52 +00:00Commented Oct 16, 2022 at 19:54