apt autoremove on one server, removing packages that were installed as dependencies and are no longer needed.200: read the last line.Authorization: Bearer ********************Executing command: line and ends with Command executed successfully with exit code: 0 or Command failed with exit code: <n>. Both lines carry ANSI color codes. A failed apt run still answers 200, so read the last line, not the status code. If another apt operation holds the apt lock, the request waits up to 20 minutes for it, then answers 409 instead of streaming.curl --location 'https://awqacore01.crexendocloud.com/ns-api/v2/apt/autoremove/core1.example.com?ticket=API-1234' \
--header 'X-Ticket: API-1234' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"ticket": "API-1234"
}'
Executing command: sudo apt autoremove -y
Hit:1 https://aptng.example.com/aptng/netsapiens/v46.0 noble InRelease
Reading package lists...
Building dependency tree...
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
Command executed successfully with exit code: 0