支持内核卸载

This commit is contained in:
2024-04-25 20:38:57 +08:00
parent 8a362b0548
commit aab5b67836
9 changed files with 72 additions and 6 deletions

View File

@@ -109,3 +109,9 @@ QString KernelInformation::localKernelName() const
process.close();
return result;
}
bool KernelInformation::get_installedAlready(int value) const
{
QString pkgName = this->get_pkgName(value).at(0);
return QFile::exists("/var/lib/dpkg/info/" + pkgName + ".list");
}