4

Почему связанные с emacs файлы все еще находятся в /usr /share /emacs даже после удаления emacs? Могу ли я удалить файлы в /usr /share /emacs?

[root@home share]# rpm -qa | grep emacs
[root@home share]#
[root@home share]# ls emacs/
21.4  site-lisp
[root@home share]# pwd
/usr/share

Я думаю, что в каталоге /usr /share слишком много файлов, какие файлы и каталоги я могу удалить?

[root@home usr]# ls
bin  etc  games  include  kerberos  lib  libexec  local  man  sbin  share  src  tmp  X11R6
[root@home usr]# find share/ | wc -l
39786
[root@home usr]# ls share/
aclocal               autoconf      cups       et         GeoIP              groff    libtool     misc       rhgb      swat          themes
aclocal-1.9           autoconf2.6x  cvs        eula       gettext            gtk-2.0  locale      muttprint  rrdtool   t1lib         vim
anaconda              automake-1.9  dbus-1     file       ghostscript        hal      logwatch    mysql      samba     tabset        X11
anthy                 avahi         denyhosts  firstboot  git-core           hwdata   lua         ntop       screen    tcl8.4        xemacs
application-registry  awk           dict       fonts      gnome-2.0          i18n     magic       openldap   sgml      terminfo      xml
applications          bogofilter    doc        games      gnome-mount        icons    magic.mime  pear       snmp      texinfo       xsessions
apps                  clamav        dstat      GConf      gnome-screensaver  info     man         php        spamdyke  texmf         yum-cli
asciidoc              cmake         emacs      gdb        gnupg              irssi    mime        pixmaps    ss        texmf-config  zoneinfo
authconfig            cracklib      empty      gdm        graphviz           lftp     mime-info   pkgconfig  swamp     texmf-var     zsh
[root@home usr]# ls share/autoconf
autoconf  Autom4te  autom4te.cfg  autoscan  autotest  INSTALL  m4sugar
[root@home usr]# ls share/autoconf/autoscan/
autoscan.list 

1 ответ1

0

Эти файлы могут принадлежать другим пакетам, которые также предоставляют некоторые режимы emacs. Вы можете проверить, из какого RPM-пакета этот файл, с помощью команды rpm, например:

rpm -qf /usr /share /emacs /path /to /file

Это плохая идея, чтобы удалить любые системные файлы вручную. Я бы предложил использовать для этого ваш менеджер пакетов.

Всё ещё ищете ответ? Посмотрите другие вопросы с метками .