文件操作 - netplan.io.preinst
返回文件管理
返回主菜单
删除本文件
文件: /var/lib/dpkg/info/netplan.io.preinst
编辑文件内容
#!/bin/sh set -e # Cleanup .pyc cached files from netplan.io versions older than 0.107-3. # After 0.107-3, the noncli-related code was moved away from # share/netplan/netplan, thanks to the new python3-netplan package, # but dpkg would leave this directory behind due to the .pyc files. # Cleaning it up here will leave the directory empty so dpkg will remove # it properly during the update process. if [ -d /usr/share/netplan/netplan ]; then find /usr/share/netplan/netplan/ -name '*.pyc' -delete find /usr/share/netplan/netplan/ -name '__pycache__' -delete fi
修改文件时间
将文件时间修改为当前时间的前一年
删除文件