Feature Requests
New / Open / Unreviewed

[Feature]: Enable Patching for Alpine Package-Manager apk

What is the installation method of your PatchMon server?

Proxmox-community script

What is the version of your PatchMon server?

2.0.2

Briefly describe the feature

Add support to run patching on apk

Detailed description

Currently its not possible to run patches from PatchMon on Alpine. If you try to run a patch it will abort with an error: package manager "apk" not supported for patching

Please enable the new patching feature from PatchMon also for apk, as this feature is amazing.

Why is this useful?

As already implemented for other package-managers, is a greate way to make sure that the monitored hosts stay up to date.

7 Comments

Posting anonymously

tekook·about 2 months ago

I created an PR for this: https://github.com/PatchMon/PatchMon/pull/863
Tested on my local alpine machine and works flawlessly for me.

Edit: Published the testing binaries on my fork. https://github.com/tekook/PatchMon/releases/tag/pre-release-2.0.2-apk-support if anyone would like to test as well.

Edit2: Updated the PR to include the backend changes for resolving the updated apk packages for alpine as well.
The release has some info about how to do the testing.

Posting anonymously

tekook·about 2 months ago

That would be so awesome to have!

Posting anonymously

gioxx·2 months ago

Same problem here 😓

Posting anonymously

HammyHavoc·2 months ago

It definitely doesn't work with the current version 2.0.2 to Patch any Alpine Host. It's always the same warning.
<img alt="Image" width="1807" height="780" src="https://private-user-images.githubusercontent.com/20671681/602339548-a6e1bfe2-70c2-4ed2-84e1-29288bcb2dad.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODA1MDQxMTAsIm5iZiI6MTc4MDUwMzgxMCwicGF0aCI6Ii8yMDY3MTY4MS82MDIzMzk1NDgtYTZlMWJmZTItNzBjMi00ZWQyLTg0ZTEtMjkyODhiY2IyZGFkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA2MDMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwNjAzVDE2MjMzMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTEzZjViMzg5YmNkZTNhYWYxOGMxZGI1YTRmZTliYWQ4ODNhOGMxZmJlMDNlYzM0NzI4ZDYwNmU5MmE3YzA2MjMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.nlOLhRqN5RYmh12ol9AlewYZti0sS1PeF6DOtSgZA0g"> <img alt="Image" width="1236" height="374" src="https://private-user-images.githubusercontent.com/20671681/602340309-093807f9-c398-4dfe-ba0a-f9533b92534c.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODA1MDQxMTAsIm5iZiI6MTc4MDUwMzgxMCwicGF0aCI6Ii8yMDY3MTY4MS82MDIzNDAzMDktMDkzODA3ZjktYzM5OC00ZGZlLWJhMGEtZjk1MzNiOTI1MzRjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA2MDMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwNjAzVDE2MjMzMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWI1NjE0ZmVhMmU3OTU4ZDk3ZTcwNzMyMjIwNTM3MjFlZGU3YmFmNTkxMTQyMWNkNjI1NWRkMGFjZTI1YzllZjImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.HFyxH9yF7OO4rei2SoEyDKLt2ZRS7MNEX4soSPsjXZc"> <img alt="Image" width="1808" height="865" src="https://private-user-images.githubusercontent.com/20671681/602339821-2513eef5-558b-4a78-ab0a-3a4a956864a8.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODA1MDQxMTAsIm5iZiI6MTc4MDUwMzgxMCwicGF0aCI6Ii8yMDY3MTY4MS82MDIzMzk4MjEtMjUxM2VlZjUtNTU4Yi00YTc4LWFiMGEtM2E0YTk1Njg2NGE4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA2MDMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwNjAzVDE2MjMzMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPThhNzJjYTBjNGU5YTJlYmRmOTA5MzBkMmU0OGI4ZDU3OTI4MDFkMTY0YWFkNTI2NDE3ZTY5ZTk5MDczNzI0ZmUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.mLoju3enrzvQVxNX2IUYaqvgT6n7Owho5lYkpq5V3fk">

Yes, same problem for me, just tried it again:

package manager "apk" not supported for patching (apt, dnf, yum, pkg, pacman required)

Posting anonymously

stevh22·2 months ago

It definitely doesn't work with the current version 2.0.2 to Patch any Alpine Host. It's always the same warning.

<img width="1807" height="780" alt="Image" src="https://github.com/user-attachments/assets/a6e1bfe2-70c2-4ed2-84e1-29288bcb2dad" /> <img width="1236" height="374" alt="Image" src="https://github.com/user-attachments/assets/093807f9-c398-4dfe-ba0a-f9533b92534c" /> <img width="1808" height="865" alt="Image" src="https://github.com/user-attachments/assets/2513eef5-558b-4a78-ab0a-3a4a956864a8" />

Posting anonymously

HammyHavoc·2 months ago

Was a previously existing feature that was removed at some point? v1.3.4 claims it shipped with 'better apk support for Alpine OS' https://github.com/PatchMon/PatchMon/releases/tag/v1.3.4

Someone told me they believe this used to work. It's frustrating as a lot of Proxmox community scripts use Alpine. PatchMon knows when they need updating, it just can't seem to action it (fails).

Posting anonymously

beanman109·3 months ago

Was a previously existing feature that was removed at some point? v1.3.4 claims it shipped with 'better apk support for Alpine OS'
https://github.com/PatchMon/PatchMon/releases/tag/v1.3.4

Posting anonymously