jadro wrote:mfa298 wrote:
apt-* commands work on packages which have already been compiled for you and will also get updates (usually only for bugs) via apt-get upgrade, compiling from source means you can have more control over how it's built and you'll get the latest version but you'll need to manually update it.
O, I didn't know this, why apt-get upgrade does not update the packages that I have installed manually?
Do I need sudo apt-get upgrade wiringPi to upgrade if there is a new version?
apt-get upgrade will only upgrade the packages it knows about that you've installed (i.e. things installed via apt-get install) if you compile from source then apt won't know about it.
For wiring Pi is looks like there's little difference between the packaged version and the version in git. For other packages there can be a huge difference. For instance the packaged version of vlc is 2.2.1 If you downloaded the source and compiled it yourself you'd get 2.2.4 (in some cases the difference can be much greater).
The benefit of installing something from the package (especially for larger packages) is that someones done the hard work for you. Compiling something like vlc may take a while determining and installing the required dependencies, best options to configure it with and then an hour to compile. Installing via apt-get someone has effectively done that work for you and and provided the end product that you can just install.
Going back to the version differences, part of the reason for this is that most linux distributions will keep the same version of the software and only apply security fixes. If they moved up the versions then it might introduce new features or change how the software works. For something like vlc that isn't an issue. For other packages (e.g. the webserver apache) that might cause issues for the person running a website (you generally don't want updates to break your web server)