123456789101112131415161718192021222324252627282930313233 |
- #!/bin/sh
- # This file is part of UPMS.
- # Copyright (c) 2016 ali abdul ghani <blade.vp2020@gmail.com>
- # UPMS is free software: you can redistribute it and/or modify
- # it under the terms of the GNU General Public License as published by
- # the Free Software Foundation, either version 3 of the License, or
- # (at your option) any later version.
- # UPMS is distributed in the hope that it will be useful,
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- # GNU General Public License for more details.
-
- # You should have received a copy of the GNU General Public License
- # along with UPMS. If not, see <http://www.gnu.org/licenses/>.
- if test "$1" = "--ask"
- then
- apt-get install $2
- elif test "$1" = "--sync"
- then
- apt-get update
- elif test "$1" = "--search"
- then
- apt-get search $1
- elif test "$1" = "--update"
- then
- apt-get update && apt-get upgrade
- elif test "$1" = "--unmerge"
- then
- apt-get remove $2
- else
- echo E: Invalid operation $1
- fi
|