Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- sudo apt-get install sed -y
- ##############UWAGA#################
- #potrzebne jest dodatkowe utworzenie dwóch plików:
- #usun.txt - gdzie po spacjach wpisujemy paczki do usunięcia - skrypt sam zajmie się usunięciem zależności
- #instaluj.txt - gdzie po spacjach wpisujemy paczki do zainstalowania (obligatoryjny jeżeli po reboocie nie chcemy zastać czarnego, zimnego tty ;p)
- #aptitude sam rozwiązuje zależności między usuwanymi a instalowanymi paczkami
- #nie odpowiadam za ew. szkody ;p
- #nie ma za co ;)
- usun=`cat usun.txt`
- chuj=`apt-cache depends $usun | sed -e 's/.*\ //g' | tr '\r\n' ' '`
- instaluj=`cat instaluj.txt`
- for i in $instaluj
- do
- inst=$inst"$i+ "
- done
- sudo apt-get install aptitude -y
- sudo aptitude remove $usun $chuj $inst -y && sudo apt-get autoremove -y && sudo apt-get install $inst
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement