Articles in this section

How do I install a apt debian package?

You can't run apt-get install.

However, you can use any package manager that can be run without sudo/root.

One commonly used example is using brew.sh

  1. Look up if the package that you need, has a brew package available by entering its name in the search box
  2. Download the install_brew_packages.sh script from GitHub and put it at the root of your project.
  3. Edit your build hook and add the package(s) to install as parameters of the script:
    hooks:
        build: |
            set -e
            bash install_brew_packages.sh duf lnav
    Note: some packages may need to be compiled. Brew does this automatically and the script will take care of caching. But the first build will be rather slow. This is normal. Most common packages will be downloaded as binaries, so those will be fast.
  4. Push the code changes.

https://community.platform.sh/t/can-i-use-homebrew/667

 

 

Was this article helpful?
1 out of 1 found this helpful

Comments

0 comments

Please sign in to leave a comment.