Manually Adjust File Locations
Learn and practice adjusting the file paths of packages.
We'll cover the following
Preface
While many packages use standardized build systems to correctly compile and install their files, some more straightforward packages don’t offer this comfort. Instead, they usually supply some sort of shell script to install files. Much like Makefiles
that we explored previously, these aren’t standardized and differ for each package. Let’s approach this problem with an example.
Example package
For this example, we’ll use the following simple package. It contains one executable shell script that reads a file and prints its contents to the terminal. The executable script is installed to /usr/local/bin
, and the data file read by the script is installed to /opt/package
. This is facilitated by the following install script:
Get hands-on with 1400+ tech skills courses.