12

Is it safe to delete the PPA after successful installation of the package? For example: Yesterday, I put a PPA in the list cause of the Trackpad function. Now, it works, but will it work when I delete it?

In my understanding PPAs are just the sources for the packages and after installation there is no need for them, is this right?

3 Answers 3

12

Adding a PPA to our sources give us the advantage to install newer application versions that did not yet find their way into the official repositories.

However by doing so we may also introduce instabilities from not yet fully tested releases.

In case we keep the PPA active this will also automatically install any software upgrade that was provides from this PPA. By this new bugs may be introduced. It is therefore good practice to inactivate a PPA after we had successfully installed a package we are happy with.

This can be done by just unticking a PPA from Software & Updates. By this we can easily activate it again in case we want to upgrade later:

enter image description here

Only if we are sure that we always want a fresh new release of any package, and the PPA will not provide updates for other packages we may keep it active.

Few PPAs will also provide security updates. In this case we also may want to keep the PPA active. However in general having packages from a PPA is not without risk.

3
  • 3
    But some of those updates will be security updates. Aren't we disabling them by doing this?
    – user405926
    Jan 6, 2016 at 16:17
  • 1
    @VarunAgw: well, with a PPA that solely depends on the maintainers. There is no additional security team who checks the contents of a PPA anyway.
    – Takkat
    Jan 6, 2016 at 16:22
  • 1
    I mean the cases where maintainer update the PPA with security updates himself. Some maintainers are very active and keep pushing updates regularly
    – user405926
    Jan 6, 2016 at 16:36
3

If you delete the PPA then you'll still able to use the application normally since the PPA is just a software resource nothing more.Read More

But, you may use the PPA for next release, updates ,security , bug fix, patches, etc...

So, it's better not to delete the PPA if you want to be up to date with these software

5
  • Thank you for the detailed answer. Can I delete the Sources? I seriously can't work with them.
    – user488954
    Jan 6, 2016 at 8:44
  • 1
    What do you mean by sources? The source code? if you mean source code, sure you can delete but you may need it if you want to remove the app later
    – Maythux
    Jan 6, 2016 at 8:45
  • Is it not possible to purge the app without the Sourcecode?
    – user488954
    Jan 6, 2016 at 8:47
  • 1
    No, unless you know where all files related to this packegs are so you can remove manually but this would be exhausting and unreliable
    – Maythux
    Jan 6, 2016 at 8:49
  • @cmyk If you mean the PPA for the source code, I always delete that PPA, even before installing or updating the package, because I have no need or use for the source code. (You've probably noticed that adding a PPA usually adds the PPAs for both the executables and the source code.) If you don't use the source code, you can safely delete the PPA for the source code. Jan 12, 2016 at 10:49
1

Is it safe to delete the PPA after successful installation of the package?

Depending on what you consider "safe". Yes, you can delete any software repository from your sources.list you wouldn't notice. But, you also will be unable to upgrade the packages from that repository, which may offer bugfixes or security patches.

It is recommended that unless you have a very good reason, you keep the repositories on your sources.list (apt 1.1.10+ changes the strategy to update package lists, which improves performance) and allow upgrades. If you want to keep a package on a specific version, you may instead prevent upgrades of that specific package until you are ready to upgrade it, without affecting other packages that the repository provides.

Note that it is normally unnecessary to remove a line of the sources.list since you can comment it out (# at the start of the line), which prevents you from forgetting from what repository you installed a specific package.

PPA's maintainers are known for not following the packaging guide thoughtfully which may cause problems. If you are able to get the package through Ubuntu's own repositories, you are less risky of running into problems.

You must log in to answer this question.