<div>Hello Ardi!</div><div> </div><div>18.01.2017, 20:39, "ardi" <ardillasdelmonte@gmail.com>:</div><blockquote type="cite"><p>Hi,<br /><br />I want to install (on UNIX-like systems) a collection of open source<br />packages which use cmake as the build tool, but I need the<br />installation to be performed in a local directory (inside my home<br />directory), and I wish convenient updating to new versions of the<br />packages.<br /><br />I didn't arrive to a convincing solution, so any advice will be welcome.<br /><br />Here are my thoughts:<br /><br />The trivial solution is of course to directly install to a non-root<br />prefix when invoking cmake, but, however, this isn't well suited for<br />updating a previous installation of the packages (building and<br />installing a new version will only overwrite files that have the same<br />name, but it will keep old files that no longer exist in the new<br />version, cluttering the local installation directory with no longer<br />needed and mismatched files).<br /><br />A possibility would be to keep a copy of install_manifest.txt whenever<br />I install a package, and remembering to always run 'xargs rm <<br />install_manifest.txt' before installing a different version of a<br />previously installed package.<br /><br />But keeping the install_manifest.txt of each installed package (and<br />using it before updating a package) looks like a too-manual task,<br />candidate to some kind of automation.<br /><br />Another (perhaps wiser) possibility would be to use cpack for creating<br />either a RPM or DEB, and then use the corresponding package manager to<br />install the package. But this has problems too: most package managers<br />assume a / root installation directory. Also, I use several OSs: OSX,<br />Linux, and some BSDs, and I'm not sure that either the RPM nor the DEB<br />pkg managers will work flawlessly across all the OSs I use.<br /><br />What would you recommend here?<br /><br />Thanks a lot!</p></blockquote><div> </div><div>Sounds like, you need cross-platform (several desktops) package manager compatible with cmake.</div><div> </div><div>If all desktops with GUI, what about using CPack IFW generator?</div><div> </div><div>https://cmake.org/cmake/help/latest/module/CPackIFW.html</div><div> </div><div>--</div><div>Regards,</div><div>Konstantin Podsvirov</div><div> </div>