Score:0

apt install -- changing root directory

cn flag

I have a package that I need to install in /usr/local rather than /usr. Is there an equivalent of dpkg -root /usr/local for apt install.

I am attempting to get rsyslog and syslog-ng to coexist...

KneadToKnow avatar
us flag
Does this help: https://askubuntu.com/questions/404824/how-to-choose-install-location-using-apt-get-install
waltinator avatar
it flag
Download the package source (or go to the developers" web site), set up a build environment (start with `sudo apt install build-essential`), reconfigure the package (`./configure`), build, install. Trying to subvert a packaged product defeats one of the benefits of software packaging.
waltinator avatar
it flag
Why do you need to get them to co-exist?
Russell Fulton avatar
cn flag
For the curious: i went back to building a package from source that installed into /usr/local. I much prefer to use standard packages if i can. I have rsyslog as the corporate std and the configuration is locked by puppet. I need a syslog server for handling data for a siem and that does lots of parsing and syslog-ng is better for that. Alternative would be to run two instances of rsyslog.
Score:0
cn flag

More research on this one implies it is not possible and in fact the --root flag on dpkg is also problematic as most standard .debs are build with a root of \ and within that dpkglooks for var/lib/dpkg which isn't there.

waltinator avatar
it flag
This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post. - [From Review](/review/low-quality-posts/1200269)
Russell Fulton avatar
cn flag
I disagree, It does provide an answer i.e. "it is not possible". I have edited the answer to remove commentary
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.