我在 CentOS 服务器上通过输入以下命令删除了 phpmyadmin
yum erase phpmyadmin
然后我检查它是否仍在服务器中,locate
它显示了以下内容:
/etc/httpd/conf.d/phpmyadmin.conf
/usr/share/phpmyadmin
/usr/share/doc/phpmyadmin-2.11.11.3
/usr/share/phpmyadmin/Documentation.html
/usr/share/phpmyadmin/browse_foreigners.php
/usr/share/phpmyadmin/calendar.php
/usr/share/phpmyadmin/changelog.php
/usr/share/phpmyadmin/chk_rel.php
/usr/share/phpmyadmin/config.inc.php
/usr/share/phpmyadmin/config.sample.inc.php
/usr/share/phpmyadmin/contrib
/usr/share/phpmyadmin/db_create.php
/usr/share/phpmyadmin/db_datadict.php
/usr/share/phpmyadmin/db_export.php
/usr/share/phpmyadmin/db_import.php
/usr/share/phpmyadmin/db_operations.php
/usr/share/phpmyadmin/db_printview.php
/usr/share/phpmyadmin/db_qbe.php
/usr/share/phpmyadmin/db_search.php
/usr/share/phpmyadmin/db_sql.php
/usr/share/phpmyadmin/db_structure.php
/usr/share/phpmyadmin/docs.css
/usr/share/phpmyadmin/error.php
/usr/share/phpmyadmin/export.php
/usr/share/phpmyadmin/favicon.ico
/usr/share/phpmyadmin/import.php
/usr/share/phpmyadmin/index.php
/usr/share/phpmyadmin/js
/usr/share/phpmyadmin/lang
/usr/share/phpmyadmin/libraries
/usr/share/phpmyadmin/license.php
/usr/share/phpmyadmin/main.php
/usr/share/phpmyadmin/navigation.php
/usr/share/phpmyadmin/pdf_pages.php
/usr/share/phpmyadmin/pdf_schema.php
/usr/share/phpmyadmin/phpinfo.php
/usr/share/phpmyadmin/phpmyadmin.css.php
/usr/share/phpmyadmin/pmd
/usr/share/phpmyadmin/pmd_common.php
/usr/share/phpmyadmin/pmd_display_field.php
/usr/share/phpmyadmin/pmd_general.php
/usr/share/phpmyadmin/pmd_help.php
/usr/share/phpmyadmin/pmd_pdf.php
/usr/share/phpmyadmin/pmd_relation_new.php
/usr/share/phpmyadmin/pmd_relation_upd.php
/usr/share/phpmyadmin/pmd_save_pos.php
/usr/share/phpmyadmin/print.css
/usr/share/phpmyadmin/querywindow.php
/usr/share/phpmyadmin/readme.php
/usr/share/phpmyadmin/scripts
/usr/share/phpmyadmin/server_binlog.php
/usr/share/phpmyadmin/server_collations.php
/usr/share/phpmyadmin/server_databases.php
/usr/share/phpmyadmin/server_engines.php
/usr/share/phpmyadmin/server_export.php
/usr/share/phpmyadmin/server_import.php
/usr/share/phpmyadmin/server_privileges.php
/usr/share/phpmyadmin/server_processlist.php
/usr/share/phpmyadmin/server_sql.php
/usr/share/phpmyadmin/server_status.php
/usr/share/phpmyadmin/server_variables.php
/usr/share/phpmyadmin/show_config_errors.php
/usr/share/phpmyadmin/sql.php
/usr/share/phpmyadmin/tbl_addfield.php
/usr/share/phpmyadmin/tbl_alter.php
/usr/share/phpmyadmin/tbl_change.php
/usr/share/phpmyadmin/tbl_create.php
/usr/share/phpmyadmin/tbl_export.php
/usr/share/phpmyadmin/tbl_import.php
/usr/share/phpmyadmin/tbl_indexes.php
/usr/share/phpmyadmin/tbl_move_copy.php
/usr/share/phpmyadmin/tbl_operations.php
/usr/share/phpmyadmin/tbl_printview.php
/usr/share/phpmyadmin/tbl_relation.php
/usr/share/phpmyadmin/tbl_replace.php
/usr/share/phpmyadmin/tbl_row_action.php
/usr/share/phpmyadmin/tbl_select.php
/usr/share/phpmyadmin/tbl_sql.php
/usr/share/phpmyadmin/tbl_structure.php
/usr/share/phpmyadmin/themes
/usr/share/phpmyadmin/themes.php
/usr/share/phpmyadmin/transformation_overview.php
/usr/share/phpmyadmin/transformation_wrapper.php
/usr/share/phpmyadmin/translators.html
/usr/share/phpmyadmin/user_password.php
/usr/share/phpmyadmin/view_create.php
/var/lib/yum/yumdb/p/2c0c9042434bd52b58095c7d7d79477a9d5c45a3-phpmyadmin-2.11.11.3-2.el6.rf-noarch
我必须手动删除它们吗?原因是我想重新安装它,因为有些东西搞砸了。
答案1
你确实意识到了locate
查看带有文件名的数据库缓存(使用命令每晚手动创建updatedb
)而不是实时文件系统。
locate
并不反映您的系统的实际状态。
您可能想要使用ls
来看看/usr/share/phpmyadmin
......