Downgrading PulseAudio with downgrade.sh

This post was automatically copied from Downgrading PulseAudio with downgrade.sh on eklausmeier.goip.de.

Just upgraded PulseAudio from 9.0-1 => 10.0-2, which was no good, as I was left with no sound.

The bash script downgrade.sh given in Github by Gordian Edenhofer saved the day. Sound is back. The script is for Arch Linux.

Usage:

downgrade.sh libpulse pulseaudio pulseaudio-bluetooth

From now on I have to use

pacman -Syu --ignore pulseaudio --ignore libpulse --ignore pulseaudio-bluetooth

to not lose the good version and getting the infected version again.