Skip to content
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

Merged
merged 2 commits into from Sep 27, 2023
Merged

Conversation

brointhemix
Copy link
Contributor

@brointhemix brointhemix commented Sep 27, 2023

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.

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.

Please give a short description what your pull request is for

DO NOT DELETE THE UNDERLYING TEXT

Please note

Please read this information carefully. You can run ./lnms dev:check to check your code before submitting.

  • Have you followed our code guidelines?
  • If my Pull Request does some changes/fixes/enhancements in the WebUI, I have inserted a screenshot of it.
  • If my Pull Request makes discovery/polling/yaml changes, I have added/updated test data.

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.

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.
```
@CLAassistant
Copy link

CLAassistant commented Sep 27, 2023

CLA assistant check
All committers have signed the CLA.

@murrant
Copy link
Member

murrant commented Sep 27, 2023

I don't understand why this is needed. Did something fail?

@Landrash
Copy link
Contributor

@murrant It avoids the error/warning about unzip/7zip not being present. :)

@brointhemix
Copy link
Contributor Author

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.

@murrant
Copy link
Member

murrant commented Sep 27, 2023

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.
Copy link
Contributor Author

@brointhemix brointhemix left a 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.

@brointhemix
Copy link
Contributor Author

When I checked right now all other steps had unzip added except Ubuntu Apache section.

@murrant murrant changed the title Update Install-LibreNMS.md Add unzip to all install docs dependencies Sep 27, 2023
Copy link
Member

@murrant murrant left a 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 !

@murrant murrant merged commit 1feabc0 into librenms:master Sep 27, 2023
6 checks passed
@brointhemix
Copy link
Contributor Author

Thanks for reviewing and accepting @murrant :)

peejaychilds pushed a commit to peejaychilds/librenms that referenced this pull request Oct 26, 2023
* 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants