Created
June 17, 2022 09:47
-
-
Save Zelnes/4b2c377103318716ca76d39d564245f4 to your computer and use it in GitHub Desktop.
List old packages ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Steps to download infos on packages for ubuntu releases that are not | |
# updated anymore (old-releases) | |
distro=precise | |
# Download and extract infos | |
for i in main multiverse restricted universe; do | |
wget -O $i.gz "http://old-releases.ubuntu.com/ubuntu/dists/${distro}/${i}/binary-amd64/Packages.gz" | |
gzip -d $i.gz | |
done | |
# Search a package | |
awk 'BEGIN{RS="\n\n"} /Package: ttf-freefont\n/{print FILENAME,"\n", $0}' main multiverse restricted universe |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment