summaryrefslogtreecommitdiff
path: root/Scripts/pacman
diff options
context:
space:
mode:
authorJulian <julianteule@gmail.com>2017-01-24 18:46:34 +0100
committerJulian <julianteule@gmail.com>2017-01-24 18:46:34 +0100
commitc8eb10a6e5a9be31ac703cf9efce6f40817760da (patch)
tree62bc8a0a46e3f908ef840d867833276ee56416a2 /Scripts/pacman
parent076f4801a51216d1d5f4aec9ccfbcf77382fea87 (diff)
Added more scripts
Diffstat (limited to 'Scripts/pacman')
-rwxr-xr-xScripts/pacman35
1 files changed, 35 insertions, 0 deletions
diff --git a/Scripts/pacman b/Scripts/pacman
new file mode 100755
index 0000000..b3f4aa0
--- /dev/null
+++ b/Scripts/pacman
@@ -0,0 +1,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