我想删除所有与 KDE PIM 相关的模块:kmail、日历、akonadi 和数据库等,因为我没有积极使用它们。除了 KDE/plasma 4 和 5 之间的一些旧讨论板评论外,没有关于如何卸载这些模块的明确文档。
那么,如何安全地卸载 ubuntu 18.04(即 plasma 5.12)上的 PIM 模块?我正在使用它们,我可以看到这些进程正在运行,如果有办法完全禁用它们,那也可以。
答案1
在 Bionic Beaver (18.04) 中,为用户提供了最小安装选项。Ubuntu、Ubuntu Mate 和 Kubuntu 是我所知道的三个提供此选项的发行版。
对于 Kubuntu 18.04,你会看到这个(取自这里):
这Kubuntu 18.04 发行说明拥有这个:
最小安装选项
它现在可在 Kubuntu 的安装程序中使用。对于 Kubuntu删除 KDE PIM 应用程序、Libreoffice、Cantata 和 mpd,以及一些额外的互联网和媒体应用程序。目前保留了完整的 Plasma Desktop,以及基本应用程序和实用程序。还保留了 Firefox 作为浏览器,以及 VLC 作为媒体播放器。
什么是不是相对于完整安装,最小安装包含的内容包括这里。我不能说这个列表有多新,但有一个部分可以KDE PIM
为您提供指导,以防您想从现有的完整安装。
# KDE PIM
accountwizard
akonadi-backend-mysql
akonadi-server
akregator
kaddressbook
kdepim-addons
kdepim-runtime
kdepim-themeeditors
kleopatra
kmail
knotes
kontact
korganizer
ktnef
mbox-importer
pim-data-exporter
pim-sieve-editor
我使用 检查了上面的一些条目apt purge -s package-name
。我检查的每个包都只删除了命名的包,没有删除任何其他包。
还有一个名为的部分residual deps/reverse-deps
。
# residual deps/reverse-deps
ktorrent-data
konversation-data
mysql-client-core-5.7
mysql-server-core-5.7
kde-config-mailtransport
kf5-kdepim-apps-libs-data
kf5-messagelib-data
kio-ldap
kio-sieve
libkf5akonadiagentbase5
libkf5akonadicalendar5abi2
libkf5akonadicalendar-data
libkf5akonadicontact5abi1
libkf5akonadicontact-data
libkf5akonadicore5abi1
libkf5akonadicore-bin
libkf5akonadimime5
libkf5akonadimime-data
libkf5akonadinotes5
libkf5akonadinotes-data
libkf5akonadiprivate5
libkf5akonadisearch-bin
libkf5akonadisearchcore5
libkf5akonadisearch-data
libkf5akonadisearchdebug5
libkf5akonadisearchpim5
libkf5akonadisearch-plugins
libkf5akonadisearchxapian5
libkf5akonadiwidgets5
libkf5alarmcalendar5abi1
libkf5alarmcalendar-data
libkf5calendarcore5abi1
libkf5calendarsupport5abi1
libkf5calendarsupport-data
libkf5calendarutils5abi1
libkf5calendarutils-bin
libkf5calendarutils-data
libkf5contacteditor5
libkf5contacteditor-data
libkf5contacts5
libkf5contacts-data
libkf5eventviews5
libkf5eventviews-data
libkf5followupreminder5
libkf5grantleetheme5
libkf5grantleetheme-data
libkf5grantleetheme-plugins
libkf5gravatar5
libkf5gravatar-data
libkf5identitymanagement5abi1
libkf5identitymanagement-data
libkf5imap5
libkf5imap-data
libkf5incidenceeditor5abi2
libkf5incidenceeditor-bin
libkf5incidenceeditor-data
libkf5kaddressbookgrantlee5
libkf5kaddressbookimportexport5
libkf5kdepimdbusinterfaces5
libkf5kmanagesieve5
libkf5kontactinterface5
libkf5kontactinterface-data
libkf5ksieve5
libkf5ksieve-data
libkf5ksieveui5
libkf5ldap5
libkf5ldap-data
libkf5libkdepim5abi2
libkf5libkdepimakonadi5
libkf5libkdepim-data
libkf5libkdepim-plugins
libkf5libkleo5abi1
libkf5mailcommon5abi4
libkf5mailcommon-plugins
libkf5mailimporter5abi1
libkf5mailimporterakonadi5
libkf5mailimporter-data
libkf5mailtransport5abi2
libkf5mailtransportakonadi5
libkf5mailtransport-data
libkf5mbox5
libkf5messagecomposer5abi2
libkf5messagecore5abi2
libkf5messagelist5abi1
libkf5messageviewer5abi4
libkf5messageviewer-plugins
libkf5mime5abi2
libkf5mime-data
libkf5mimetreeparser5abi2
libkf5pimcommon5abi3
libkf5pimcommonakonadi5
libkf5pimcommon-plugins
libkf5pimtextedit5abi2
libkf5pimtextedit-data
libkf5sendlater5
libkf5syndication5
libkf5templateparser5abi2
libkf5tnef5
libkf5tnef-data
libkf5webengineviewer5abi3
libkpimgapicalendar5
libkpimgapicontacts5
libkpimgapitasks5
libkpimimportwizard5
libkpimkdav5
libkpimkdav-data
akonadictl status
运行查看akonadi
系统上正在执行的操作也很有用。在我的系统上,我看到:
$ akonadictl status
Akonadi Control: stopped
Akonadi Server: stopped
Akonadi Server Search Support: available (Remote Search)
Available Agent Types: akonadi_akonotes_resource, akonadi_archivemail_agent, akonadi_birthdays_resource, akonadi_contacts_resource, akonadi_davgroupware_resource, akonadi_ews_resource, akonadi_ewsmta_resource, akonadi_facebook_resource, akonadi_followupreminder_agent, akonadi_googlecalendar_resource, akonadi_googlecontacts_resource, akonadi_ical_resource, akonadi_icaldir_resource, akonadi_imap_resource, akonadi_indexing_agent, akonadi_invitations_agent, akonadi_kalarm_dir_resource, akonadi_kalarm_resource, akonadi_kolab_resource, akonadi_maildir_resource, akonadi_maildispatcher_agent, akonadi_mailfilter_agent, akonadi_mbox_resource, akonadi_migration_agent, akonadi_mixedmaildir_resource, akonadi_newmailnotifier_agent, akonadi_notes_agent, akonadi_notes_resource, akonadi_openxchange_resource, akonadi_pop3_resource, akonadi_sendlater_agent, akonadi_tomboynotes_resource, akonadi_vcard_resource, akonadi_vcarddir_resource
$
并且man akonadictl
stop : Stops the Akonadi server and all its processes cleanly
你可能会觉得有用。
另一个有用的命令是compgen
:
$ compgen -c | grep mysql
mysqld
mysqld-akonadi
mysql
mysql_upgrade
mysql_install_db
mysql_embedded
mysqlcheck
$
在我的系统上,和pgrep -i -al akonadi
都是pgrep -i -al mysql
空的。