How do I use
yum to list all packages, sorted by popularity (assuming that this is an available feature)?
I don't have a rigorous definition of popularity, but a standard metric such as number of downloads should do.
The best you could do is show google result count and package name in sorted columns, something like;
UA='user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/68.0.3440.75 Chrome/68.0.3440.75 Safari/537.36' while read -r P ; do C=$(curl -s 'https://www.google.ca/search?q=$P' -H "$UA" \ | grep About \ | perl -pe 's/<[^<>]+>/ /g;s/.*About +([0-9,]+) +results.*$/$1/g;s/^.*[a-z].*$//g') echo -e "$C\t$P" done \ < <(yum list all | grep " " | perl -pe 's/[ .].*//g' | sort -u) \ | sort -rn
(Ommitting user-agent will get you "403 Forbidden")
The results may not be useful though (head);
14,740,000,000 SDL 14,740,000,000 PyYAML 14,740,000,000 GeoIP 14,740,000,000 autogen-libopts 14,740,000,000 authconfig 14,740,000,000 audit-libs-python 14,740,000,000 audit-libs 14,740,000,000 audit 14,740,000,000 alsa-lib 14,740,000,000 acl