New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add unzip to all install docs dependencies #15354
Conversation
Composer complains that neither unzip nor 7z is installed so it would unzip using PHP which may or may not corrupt the results file. This has always worked fine for me but I guess it might be a better idea to use the "real" unzipper. ``` librenms@librenms1:~$ ./scripts/composer_wrapper.php install --no-dev Could not scan for classes inside "vendor/dapphp/radius" which does not appear to be a file nor a folder > LibreNMS\ComposerHelper::preInstall Installing dependencies from lock file Verifying lock file contents can be installed on current platform. Package operations: 118 installs, 0 updates, 0 removals As there is no 'unzip' nor '7z' command installed zip files are being unpacked using the PHP zip extension. This may cause invalid reports of corrupted archives. Besides, any UNIX permissions (e.g. executable) defined in the archives will be lost. Installing 'unzip' or '7z' (21.01+) may remediate them. ```
I don't understand why this is needed. Did something fail? |
@murrant It avoids the error/warning about unzip/7zip not being present. :) |
Hello! I agree this is not a big update. But yes, with unzip installed you can avoid the warning from composer that it needs to decompress archives on its own rather than use a dedicated binary. |
If this is truly the case, shouldn't all install docs be updated? Or is Debian the only one that doesn't have unzip? Please keep the packages alphabetical. |
Sorted 'unzip' package alphabetically in Debian, Ubuntu and CentOS installation steps.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorted 'unzip' package alphabetically in installation steps for Ubuntu, Debian and CentOS.
When I checked right now all other steps had unzip added except Ubuntu Apache section. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for looking and checking @brointhemix !
Thanks for reviewing and accepting @murrant :) |
* Update Install-LibreNMS.md Composer complains that neither unzip nor 7z is installed so it would unzip using PHP which may or may not corrupt the results file. This has always worked fine for me but I guess it might be a better idea to use the "real" unzipper. ``` librenms@librenms1:~$ ./scripts/composer_wrapper.php install --no-dev Could not scan for classes inside "vendor/dapphp/radius" which does not appear to be a file nor a folder > LibreNMS\ComposerHelper::preInstall Installing dependencies from lock file Verifying lock file contents can be installed on current platform. Package operations: 118 installs, 0 updates, 0 removals As there is no 'unzip' nor '7z' command installed zip files are being unpacked using the PHP zip extension. This may cause invalid reports of corrupted archives. Besides, any UNIX permissions (e.g. executable) defined in the archives will be lost. Installing 'unzip' or '7z' (21.01+) may remediate them. ``` * Update Install-LibreNMS.md Sorted 'unzip' package alphabetically in Debian, Ubuntu and CentOS installation steps.
For Debian 11 installation, Composer complains that neither unzip nor 7z is installed so it would unzip using PHP which may or may not corrupt the results file. This has always worked fine for me but I guess it might be a better idea to use the "real" unzipper.
I added 'unzip' to the list of installed software for Debian 11 steps in the documentation. I made no other changes.
Please give a short description what your pull request is for
DO NOT DELETE THE UNDERLYING TEXT
Please note
Testers
If you would like to test this pull request then please run:
./scripts/github-apply <pr_id>
, i.e./scripts/github-apply 5926
After you are done testing, you can remove the changes with
./scripts/github-remove
. If there are schema changes, you can ask on discord how to revert.