Add package manager remove command.

Signed-off-by: Nicolás Ortega Froysa <nicolas@ortegas.org>
This commit is contained in:
Nicolás A. Ortega Froysa 2024-03-28 10:42:49 +01:00
parent f55124759e
commit aa7e2d2fbc

View File

@ -149,6 +149,7 @@ sub get_pkgmgr() {
my $mgr_cmd_search = "$mgr_bin -Ss";
my $mgr_cmd_install_remote = "$mgr_bin -S";
my $mgr_cmd_install_local = "$mgr_bin -U";
my $mgr_cmd_remove = "$mgr_bin -R";
my %pkgmgr = (
name => $mgr,
@ -156,6 +157,7 @@ sub get_pkgmgr() {
search => $mgr_cmd_search,
install_remote => $mgr_cmd_install_remote,
install_local => $mgr_cmd_install_local,
remove => $mgr_cmd_remove,
);
return \%pkgmgr;