[SOLVED] Question about differences between apt and compile my own
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Question about differences between apt and compile my own
I install qbittorrent using apt-get on my Raspberry Pi running Raspbian stretch. Because the version is old (v3.x). I followed the guide at https://github.com/qbittorrent/qBitt...ian-and-Ubuntu to install v4.x. One thing I have to do is to update LD_LIBRARY_PATH in order for qbittorrent to find libtorrent which I don't have to do when I used apt-get. How does the apt version find the libtorrent it need?
If you install something using apt you are actually installing a deb file. The deb file was probably created using a tool like dpkg-buildpackage or builddeb. The tools make sure files and other stuff are installed in a "Debian standard location" and in theory they should take care of all the details of ensuring the package works after being installed.
I haven't looked at the qbittorrent code but often code compiled from source will install stuff to a location like /usr/local or some other location that is not a debian standard location and you may have problems finding the shared libraries and other files and so on after installation.
I know from packaging deb files for Bodhi linux that even if one compiles code with the option: --prefix=/usr this does not guarantee all the files will end up in the same location as the same package installed via compiling. Enlightenment any version as well as Moksha (e17 fork) is a good example of this. Compiling these on top of a version installed from a deb file BREAKS things as a result of this "file confusion."
Thanks. I did run ldconfig as part of the build process.
I found qbittorrent installed with apt-get under /usr/bin but I can't find libtorrent under /usr/lib . Is /usr/lib the default or the default lib directory is somewhere else?
"Question about differences between apt and compile my own"
i feel that one important point has not been addressed yet:
if you install any software by compiling it yourself & using the install command, you are circumventing the system's package management.
this nedd not be a problem, but you should consider carefully whether you want (need) to do that. you should also keep in mind (or on a list) the applications you installed that way, because it might help to fix weird errors later on.
the package management is the single biggest piece of magic on any gnu/linux system, and on debian it is 'apt'.
"Question about differences between apt and compile my own"
i feel that one important point has not been addressed yet:
if you install any software by compiling it yourself & using the install command, you are circumventing the system's package management.
this nedd not be a problem, but you should consider carefully whether you want (need) to do that. you should also keep in mind (or on a list) the applications you installed that way, because it might help to fix weird errors later on.
the package management is the single biggest piece of magic on any gnu/linux system, and on debian it is 'apt'.
For the sake of discussion, what option do I have if I want qbittorrent 4.x but the package maintainer does not update it for stretch? qbittorrent 4 has been built for Debian Buster but not available on Stretch. https://packages.debian.org/search?k...ll§ion=all
For the sake of discussion, what option do I have if I want qbittorrent 4.x but the package maintainer does not update it for stretch? qbittorrent 4 has been built for Debian Buster but not available on Stretch.
https://wiki.debian.org/DontBreakDeb...Stuff_Syndrome
so, for the sake of discussion, the question is:
do you have any real reason to need that newer version?
debian stable is safe as it is, there's no "newer is better" here.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.