Here is a fast tip – how to remove a package from our local aptly repository:
- Remove the package from the local repository.
- Create a new snapshot form the local repository.
- Publish the snapshot by switching to the newly created snapshot from the above step.
The commands executing over repository with name xenial-apps to remove package with name example-app and version 10.5.1.22-ubuntu20. The snapshot name xenial-apps1588149526 is just a temporary name used for the snapshot (the ID is unix timestamp of the current time).
aptly repo remove xenial-apps 'example-app (= 10.5.1.22-ubuntu20)' aptly snapshot create xenial-apps1588149526 from repo xenial-apps aptly publish switch xenial-apps ubuntu xenial-apps1588149526
Real world example.
This is the log from our system with just changed names:
Keep on reading!