4. Updating the repository metadata

Package files added to the primary repository are not visible until the primary repository's metadata is updated:

lpm --sync /var/www/html/repository

Use the following command to remove published packages from the primary repository directory:

lpm --erase --sync /var/www/html/repository filename

filename should be the name of a source package file in the repository: name-version-release.src.lp. The source package file, and all binary package files that were built from the source package, will be removed from the repository directory. filename may also be a name of a binary package file. All binary package files built from the same source package, and the source package file itself, will also be removed.

An lpm --erase command must be issued for every separate package that should be removed. The --sync sub-option is only required by the last lpm --erase command given.