Sunday, January 8, 2017

14.04 - manage PPA via terminal


I was searching for a way to manage my repositories in an advanced way and I found y-ppa-manager GUI application. it is a great application, that's for sure. But is there a way to manage them via *terminal?


Like backup current repos to some kind of file, restoring them from a file. Other words is there a smiler application to y-ppa-manager on terminal?



You can add a repository by add-apt-repostory command, e.g.


sudo add-apt-repository ppa:hanipouspilot/rtlwifi

You can remove a repository by add-apt-repostory -r, e.g.


sudo add-apt-repository -r ppa:hanipouspilot/rtlwifi

You can also purge all packages installed from a repository by ppa-purge. You will need to install it first


sudo apt-get install ppa-purge

Then use it this way


sudo ppa-purge ppa:hanipouspilot/rtlwifi

The command will purge all the packages and revert them to the previous ones from the standard repos, if anything has been upgraded from the PPA.


To backup repository lists you can backup the contents of /etc/apt/sources.list.d directory. The lists are stored there.


No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...