summaryrefslogtreecommitdiff
path: root/bin/.bin/pkg
blob: 5eea459bfefa018efaeca2e063140a2aab43a506 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

case "$1" in
    i*)
        sudo xbps-install "$@"
        ;;
    d*)
        sudo xbps-remove -R "$@"
        ;;
    q*)
        sudo xbps-query "$@"
        ;;
    u*)
        sudo xbps-install -Syu
        ;;
    o*)
        sudo xbps-remove -Oo
        ;;
    *)
        printf "i - install\nd - delete\nq - query\nu - update\no - remove obs"
        ;;
esac