Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I use a lot of PPA's. I'd like to check if all of them have packages for Saucy before updating.

Is there a program which checks whether my PPAs have packages for a different version of Ubuntu?

share|improve this question

2 Answers 2

up vote 5 down vote accepted

This can be scripted... It'll need altered versions of two of my previous answers: one to get a list of all the PPAs and another to check if a URL is live. With those two techniques we can build a real launchpad URL and test it.

dist="saucy"
ppas=$(grep -RoPish "ppa.launchpad.net/[^/]+/[^/ ]+" /etc/apt | sort -u)
while read -r ppa; do
    url="http://$ppa/ubuntu/dists/$dist/"
    if [[ $(wget -O /dev/null "$url" 2>&1|grep "200 OK"|wc -l) == "0" ]]; then
        echo "$ppa does not have a $dist version"
    fi
done <<< "$ppas"

It's an ugly script but it's so beautiful at the same time.

share|improve this answer
1  
Very nice (takes a while, though). If this is ugly then the script I was working on was downright horrible. Thanks! –  minerz029 Oct 25 '13 at 23:23
    
Hm, it was quite fast here. Took 1.9 seconds for 27 PPAs. –  Oli Oct 25 '13 at 23:26

I don't know of any software to do that, but from the PPA's webpage it is easy to check, by deploying the list in section "Overview of published packages" (see the image below).

published packages

Click to see a higher-resolution image.

If you use really a lot of PPAs, this can get tiring.

Perhaps an internet crawling script might help? With that I couldn't help you much, though.

Image taken from this Q&A in ask.libreoffice.org.

share|improve this answer
    
Yes, that's an option but I do have a lot of PPA's. I might write a script myself for this. Thanks for your help. –  minerz029 Oct 25 '13 at 22:50
1  
Please share your script when you are done! –  carnendil Oct 25 '13 at 22:57

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.