Manager for installing applications from PPA repositories

Search results for Chromium package.
I just discovered an application I was hoping for: Y PPA Manager.

Find easily the corresponding repository for a specific application, remove added PPA-repositories, etc., with this simple desktop tool.

Install instructions

The following command lines will install the tool, and I almost promise; this is the last time you add a repository from the command line.
# Add repository
sudo add-apt-repository ppa:webupd8team/y-ppa-manager

# Add description to repository for easier identification
sudo sed -i.bak 's/$/ #Y-PPA-Manager/' /etc/apt/sources.list.d/webupd8team-y-ppa-manager-natty.list

# Install
sudo apt-get update
sudo apt-get install y-ppa-manager

Features

  • For example, search for Chromium and it will offer you more than 20 repositories, from daily, beta, official ones.
  • It advises, if there isn't a repository for your current distro, for example, Ailurus still isn't available for Natty.
  • You can browse all packages offered by a repository before enabling it for your system.
  • Somehow, I often run into problems with PPA keys, maybe because I just copy the corresponding PPA entries from /etc/apt/sources.list.d to another machine.
    Each time I run the apt-get update command, I get lots of warnings about missing GPG keys.
    Y-PPA-Manager offers a command to clean up all these errors by automatically importing all missing keys.
  • The PPA-purge option disables a PPA from your Software Sources and reverts your system to normal after testing a new version from a PPA.
In short words: A-must-have-tool for Ubuntu.

Command line

You can also use Y-PPA-Manager commands directly from the shell (in case you still miss the terminal), just execute this to see all available commands:
y-ppa-cmd
launchpad-getkeys  # import all missing keys
ppa-purge              # remove a PPA repository source from your system

Convert existing PPA repositories to Natty

I'll offer you here some commands you might want to use to convert your existing PPA repositories to your upgraded distro.
When upgrading Ubuntu to a newer version, all your personal repositories will be disabled to prevent problems.
After the upgrade you'll have to enable them by hand, even worse, the ones you had disabled before upgrading still point to the repositories of the previous distro.
You might use some of these commands to make these changes automatically.
# Become super-user
sudo -i
# Enter repository list folder
cd /etc/apt/sources.list.d/
# Change maverick to natty for all maverick specific list files and store them as natty ones
for sl in *-maverick.list ; do echo ${sl/maverick/natty} ; sed 's/# \(.*\) maverick\(.*\)/\1 natty\2/' $sl > ${sl/maverick/natty} ; done
# Remove the "disabled ..." comment
for sl in *-natty.list ; do echo ${sl} ; sed -i.bak 's/ disabled on upgrade to natty$//' $sl ; done
# Check they are all fine
for sl in *-natty.list ; do echo ${sl/maverick/natty} ; cat $sl ; done
# Cleanup backup files and maverick list files (not needed any longer)
rm *-maverick* *.list.bak

No comments:

Post a Comment