Results 1 to 8 of 8

Thread: Compiling from the sources VS installing from a Personal Package Archive?

  1. #1
    Join Date
    Dec 2014
    Beans
    147

    Question Compiling from the sources VS installing from a Personal Package Archive?

    Hello guys
    I want your opinions on this specific subject. Which one you think is better? Which one you think is safer? Which one suits you better? What are the upsides and the downsides of each one of these two options?

  2. #2
    hakermania's Avatar
    hakermania is offline Τώρα ξέρεις τι γράφω εδώ!
    Join Date
    Aug 2009
    Location
    Greece
    Beans
    1,705
    Distro
    Ubuntu Development Release

    Re: Compiling from the sources VS installing from a Personal Package Archive?

    Installing from source:

    Pros:
    • Providing that you got the source from the official place, you know that it has not been altered.
    • You can get the latest available version of the program easily. The official repositories are usually some versions behind the PPAs and the PPAs are behind the official source until they catch up.

    Cons:
    • It takes much more time for the installation to complete, depending on how large the source code is and how much time it takes to compile.
    • It usually requires installation of extra development libraries.
    • It is a more technical way to install things, as it requires some knowledge of the terminal, like how to build from source using the 'make' command, how to read and interpret the error messages etc.
    • It rarely comes with a scipt to uninstall things. 'make uninstall' should do this, but the uninstallation rule rarely is available. This leaves you with only one option in case you want to uninstall the software: search and manually remove the installation files. This usually ends up with you not deleting all your files and trash remaining inside your system.


    Installing from a PPA:

    Pros:
    • Easy way to keep up with the latest versions of programs.
    • It's an install it and forget it thing. As new updates come into the PPA, they automatically appear on your manual software upgrades.
    • They are easy to remove. The installation of a program through a PPA follows the same route as the installation of a program from the official software sources, so it comes with a DEB package which is easily uninstallable. The PPA itself can easily be removed from the graphical interface of the corresponding programs (i.e. Ubuntu Software Center for Ubuntu or Software Manager for Mint)

    Cons:
    • You cannot always trust the publisher of the PPA. The publisher of the PPA can tamper with the official code and include their own malicious code. So you must be 100% sure that you trust the PPA's publisher. This isn't true for the official repositories and the official sites of the software, as the code there is being monitored in some level.
    • The more PPAs you install, the more slower the update and upgrade progress gets. PPAs are generally installed through Launchpad which, from my experience, is much slower than the official servers.

  3. #3
    Join Date
    Jul 2005
    Location
    I think I'm here! Maybe?
    Beans
    Hidden!
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: Compiling from the sources VS installing from a Personal Package Archive?

    Apart from having to compile and install ndiswrapper in 12.04 in order to get it to work some time ago for my old laptop, and using the latest version of hplip-3.13.8.run to automatically compile and install the latest version of hplip needed for a new printer I had, I have never needed to compile anything, nor do I believe that the system speed advantage that some speak of is worth all the extra bother.

    In order to keep up-to-date I do use several PPAs, none of which have ever caused me any problems.

    If you're going to do that all the time why not install gentoo or arch in the first place? You will then see the BIG advantage of using a system that has pre-compiled packages.

  4. #4
    Join Date
    Jun 2012
    Beans
    822

    Re: Compiling from the sources VS installing from a Personal Package Archive?

    I don't have a lot to add to the above answers except to say that I don't recommend either method to beginners unless there is absolutely no other way to do what ever it is you want with something that's in the tested repos.

    If you want to play around, fine, no problem. But I'd recommend doing that if you have more than one linux box. Keep one vanilla and stable.
    Last edited by Rob Sayer; May 23rd, 2015 at 01:59 PM.

  5. #5
    Join Date
    Feb 2008
    Location
    Texas
    Beans
    29,809
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Compiling from the sources VS installing from a Personal Package Archive?

    Thread moved to Ubuntu, Linux and OS Chat.

  6. #6
    Join Date
    Aug 2013
    Beans
    4,941

    Re: Compiling from the sources VS installing from a Personal Package Archive?

    ppas are more convenient and software is usually automatically updated. Use the big and well known ones and the ones maintained by the developers , they are safe. Another thing is choose ppas for applications that don't have a lot of dependencies so you won't upgrade a whole bunch of things Finally ppa-purge is a handy tool if anything goes wrong and you want to roll back the packages.

    Compile when there is either no ppa for the version (and be older or newer) or features you want. Ubuntu builds sometimes disable some features you may want.
    Last edited by monkeybrain20122; May 23rd, 2015 at 07:14 PM.

  7. #7
    Join Date
    Aug 2013
    Beans
    4,941

    Re: Compiling from the sources VS installing from a Personal Package Archive?

    Quote Originally Posted by Rob Sayer View Post

    If you want to play around, fine, no problem. But I'd recommend doing that if you have more than one linux box. Keep one vanilla and stable.
    I think that is unnecessarily cautious, unless you are using test builds for system components.

  8. #8
    Join Date
    Mar 2007
    Location
    Denver, CO
    Beans
    7,958
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: Compiling from the sources VS installing from a Personal Package Archive?

    Honestly I think learning how to compile a program from source and stepping through having to shag down various developmental libraries is actually a very good exercise into learning how things work within linux. I'm not saying it should be done regularly, however there are many programs that are really fun to try out, and the ability to pull them from a git archive, compile them and try them is really fun. One example of this would be the end-to-end google chrome extension.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •