forked from luarocks/luarocks
-
Notifications
You must be signed in to change notification settings - Fork 0
remove (luarocks admin)
Peter Melnichenko edited this page Sep 10, 2016
·
2 revisions
luarocks-admin remove - Add a rock or rockspec to a rocks server.
luarocks-admin remove [--server=<server>] [--no-refresh] {<rockspec>|<rock>}...
Arguments are local files, which may be rockspecs or rocks.
The flag --server indicates which server to use. If not given, the default server set in the upload_server variable from the configuration file is used instead.
The flag --no-refresh indicates the local cache should not be refreshed prior to generation of the updated manifest.
You need to have rsync installed in order to use this command.
Remove a rockspec from your default configured upload server:
luarocks-admin remove lpeg-0.9-1.rockspec
Assuming your ~/.luarocks/config.lua file looks like this:
upload_server = "main"
upload_servers = {
main = {
rsync = "www.example.com/repos/main",
},
dev = {
rsync = "www.example.com/repos/devel-rocks",
},
}you can specify which repository to use with the --server flag:
luarocks-admin remove --server=dev my_rock-scm-1.rockspec