Everybody knows that to check if there are newer versions of software available, we need to do apt-get update
.
but in order to reduce bandwidth, I only want to check if there is an updated version of a specific package. How to achieve this? notice that I don't want to install the newer version, just retrieve information about the newer package.
(Please focus on the feasibility of this task rather than the sanity of it..)
sudo apt update
, fetching only information about a specific package (if possible) without fetching all other changed software lists? I really don't see any sense in this, asapt
already reduces the consumed bandwidth a lot by only downloading and comparing hashes or timestamps of each repository to determine which of them have changed and to only download those. You will probably not get much cheaper than that, at least not without much effort and maybe risking the stability of your package system. – Byte Commander Aug 08 '17 at 15:11apt-cache policy <packagename>
do that for you? – Terrance Aug 08 '17 at 16:37apt-cache
querying the local cache of package list? hence if there is a newer version in the remote repository, I wouldn't know. – Sajuuk Aug 09 '17 at 02:31apt update
I couldn't tell you. You might really be looking at configuring the apt update to look at a specific repo all the time, or just visiting the web sites that Anwar put in his comment here. – Terrance Aug 09 '17 at 02:56