Ну, может быть, этот скрипт является решением для ваших нужд:
#!/bin/bash U="$1" FILE="$2" [[ -z "$U" ]] && echo -e "Usage: $0 repo-url [file to download]\nwithout give \"file to download\" this script will list the files inside the repo\n"; for i in $(curl -l "$U" 2>/dev/null|grep -i 'href='|sed -e 's/.*href=//g' -e 's/>.*//g' -e 's/"//g'|grep -v '/$'|grep "$FILE") do if [[ -z "$FILE" ]] then echo "FILE: $i" else echo "Download file: $i" curl -q "${U}/${i}" --output "$i" 2>/dev/null ls -la "$i" fi done
Грубая сила:
Если установка была выполнена с помощью yum
, удаление выполняется с помощью:
sudo yum erase oracle-xe