Score:-1

How can I set wget to download only newer file in a specific url?

mx flag

How do I get wget to download only newest file version in a url?

Sample url: https://packages.microsoft.com/repos/edge/pool/main/m/microsoft-edge-stable/

As you can see, there are multiple versions of Edge installer file.

Jacob Vlijm avatar
by flag
Specifically bash? seems not the most fit language for it.
Score:0
ng flag

You need to provide the whole URL.

So you need to use:

wget https://packages.microsoft.com/repos/edge/pool/main/m/microsoft-edge-stable/microsoft-edge-stable_95.0.1020.40-1_amd64.deb
neon99921 avatar
mx flag
thanks,but i mean automatically detect and download newest file, not manual! i want create a bash script that included this job,
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.