0

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...

Russell Fulton
  • 173
  • 1
  • 1
  • 9
  • Does this help: https://askubuntu.com/questions/404824/how-to-choose-install-location-using-apt-get-install – KneadToKnow Jan 18 '22 at 01:34
  • 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 Jan 18 '22 at 04:20
  • Why do you need to get them to co-exist? – waltinator Jan 18 '22 at 04:23
  • 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. – Russell Fulton Jan 19 '22 at 04:01

1 Answers1

0

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.

Russell Fulton
  • 173
  • 1
  • 1
  • 9
  • 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) – waltinator Jan 20 '22 at 02:19
  • I disagree, It does provide an answer i.e. "it is not possible". I have edited the answer to remove commentary – Russell Fulton Jan 21 '22 at 18:01