如何升级/降级到 plex 的不同软件包版本
我可以通过输入来查看哪些内容是可升级的。
- pi@pistorage:~ $
sudo apt list --upgradable
Listing... Done
plexmediaserver/public 1.22.1.4228-724c56e62 armhf [upgradable from: 1.22.0.4163-d8c4875dd]
N: There are **13 additional versions. Please use the '-a'** switch to see them.
我可以通过输入来查看版本。
- pi@pistorage:~ $
sudo apt list --upgradable -a
plexmediaserver/public 1.22.1.4228-724c56e62 armhf [upgradable from: 1.22.0.4163-d8c4875dd]
plexmediaserver/public,now 1.22.0.4163-d8c4875dd armhf [installed,upgradable to: 1.22.1.4228-724c56e62]
plexmediaserver/public 1.21.4.4079-1b7748a7b armhf
plexmediaserver/public 1.21.3.4046-3c1c83ba4 armhf
plexmediaserver/public 1.21.3.4021-5a0a3e4b2 armhf
plexmediaserver/public 1.21.3.4015-a4be9cb8b armhf
plexmediaserver/public 1.21.3.4014-58bd20c02 armhf
plexmediaserver/public 1.21.2.3943-a91458577 armhf
plexmediaserver/public 1.21.2.3939-3945797bd armhf
plexmediaserver/public 1.21.1.3876-3c3adfcb4 armhf
plexmediaserver/public 1.21.1.3842-b0c7a97d9 armhf
plexmediaserver/public 1.21.1.3830-6c22540d5 armhf
plexmediaserver/public 1.21.1.3795-ee64ab56f armhf
plexmediaserver/public 1.21.1.3766-7e23ef53c armhf
我如何选择要安装的确切版本?(Plex 升级往往会在升级过程中造成破坏)
我知道我可以使用sudo apt --only-upgrade install plexmediaserver
https://www.cyberciti.biz/faq/ubuntu-upgrade-update-single-package-using-apt-get/
我只是不确定如何选择我想要的一个。
答案1
sudo systemctl stop plexmediaserver
cd /var/cache/apt/archives
sudo apt install ./plexmediaserver_1.22.0.4163-d8c4875dd_armhf.deb
可能不需要更改用户/密码
sudo nano /lib/systemd/system/plexmediaserver.service
-Then reboot server
sudo systemctl daemon-reload
供测试用:
sudo systemctl restart plexmediaserver
sudo service plexmediaserver status
sudo systemctl restart plexmediaserver
sudo systemctl stop plexmediaserver
sudo systemctl start plexmediaserver