summaryrefslogtreecommitdiff
path: root/Scripts/pacman
blob: b3f4aa05312a1af026893439dbf48e719952c8ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash

#Name: pacman.sh
#This is a pacman script for archlinux users on ubuntu
#Autor: Stjepan Horvat aka schef
#Date: 2011-05-13

USAGE="Usage: Arch Linux like pacman."

if [ $# -eq 0 ]; then
  echo $USAGE
  exit
elif [ $# -gt 2 ];then
  echo $USAGE
  exit

elif [ $1 = -Ss ]; then
  apt search $2

elif [ $1 = -S ]; then
  apt install $2

elif [ $1 = -Sy ]; then
  apt update

elif [ $1 = -Su ]; then
  apt upgrade

elif [ $1 = -Syu ]; then
  apt update && apt upgrade

else
  echo $USAGE
  exit
fi