I have slow internet
I know I can download a package using
sudo pacman -Sw package
but how can I manually install it? using pacman
I have slow internet
I know I can download a package using
sudo pacman -Sw package
but how can I manually install it? using pacman
pacman -Syu <package name>
.
But I think you can leave out the u
. Probably the y
too.
sudo pacman -S <packageName>
Both the y
and u
options will do things over the internet, so if you wish to avoid internet usage, thatâs what I would recommend.
actually it didnât work it start updating full system
Oh yes it worked only need to use -S Thanks a lot
You know, this all is already written in pacman manpage and countless webpages. Donât be lazy, search and read.
Unless you know your system is fully up-to-date
# DO NOT DO THIS
sudo pacman -S <pkgname>
$ man pacman
[...]
-U, --upgrade
Upgrade or add package(s) to the system and install the
required dependencies from sync repositories. Either a
URL or file path can be specified. This is a
âremove-then-addâ process. See Upgrade Options below;
also see Handling Config Files for an explanation on how
pacman takes care of configuration files.
[...]
but it worked and my system isnât fully up-to-date
Just donât cry when it doesnât. Partial updates are not supported.
Thatâs pure Luck. Now your system is in a partially updated, unsupported state.
I never said you should, because you need to be updated, It has been covered here on the foum countless times why.
Iâm just curious and this maybe my wrong assumption , correct me If Iâm wrong but I think -U is there to update package for different version letâs say If I want to move to older version I can use -U but if there is new package I can use -S and get away with it so this way my system wonât be in Partial updates
Why assume when you can read manpage. @linux-aarhus even pasted relevant snippet. With -U
: Either a URL or file path can be specified. With -S
it checks database.
Has nothing to do with versions.
Nonsense. As I keep saying, -S
only installs things that are consistent with your local package database.
Worst case scenario, you get a 404 error and have to -Syu
to install the package. Unless they use -Sy
, without -Su
shortly after.
Not necessarily a partial update, it could be a system that hasnât been updated. At least as far as we know.
-U
installs a particular package, it can get you into a partial update state.
-S
installs a package that is listed in the local package database. If necessary it downloads it first.
pacman
requests the filename, which includes the version, so when a package is updated the filename changes. If the filename doesnât exist then you get a 404 (file not found) error.
If that happens you need to update your local database, best done using -Syu
which will also update the system.
If you only update the database, and then install an updated package you are in a partial update.
You know that I know that - but it is not reasonable to assume that everybody else does too.
When you are familiar with your system - you can do what ever you want - and you know what happens - that includes
pacman -S <pkgname>
I think that we shouldnât gloss over the details, itâs not that complicated.
People learn from what we write, we should teach them properly.
I agree to a point, so Iâd rephrase that:
Those that are open to learn, do so by listening to others. Or read. So tell those that want too know. Because speaking to those that donât has the same effect as trying to get a brick wall to breathe.
I agreeâŚwalls should breathe.
I donât know why they donât. I mean, they can talk to youâŚ
This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.