zfs-builds-mm/replace_packages_ubuntu

15 lines
533 B
Text
Raw Normal View History

2019-07-06 23:40:11 +02:00
#!/bin/bash
apt update
apt-get install python3 python3-dev python3-setuptools python3-cffi dkms python3-distutils gdebi -y
2020-07-19 16:21:53 +02:00
apt remove zfs libuutil1 libnvpair1 -y
2019-07-09 20:25:38 +02:00
apt remove "zfs*" -y
2020-07-10 09:47:56 +02:00
apt remove "zpool*" -y
apt remove "*zfs*" -y
apt remove "*zpool*" -y
2019-07-09 20:52:53 +02:00
apt autoremove -y
2019-07-06 23:40:11 +02:00
for file in *$1*.deb; do sudo gdebi -q --non-interactive $file; done
2019-07-09 21:42:42 +02:00
cp zfSnap /usr/sbin/zfSnap
chmod 755 /usr/sbin/zfSnap
2020-03-11 22:46:08 +01:00
echo "$(grep -ve "^zfs$" /etc/modules-load.d/modules.conf)" > /etc/modules-load.d/modules.conf
2019-07-18 15:31:51 +02:00
echo zfs >> /etc/modules-load.d/modules.conf