删除“kubuntu-restricted-extas”(或者:了解“apt-get autoremove”的一般知识)

删除“kubuntu-restricted-extas”(或者:了解“apt-get autoremove”的一般知识)

我对 Ubuntu(分别是 Kubuntu)和 Linux 还不熟悉。但是,有些事情让我很困扰。抱歉,如果这个问题之前已经回答过了,但是我不知何故无法将这些部分以我能理解的方式拼凑起来。

因此,我最近安装了 kubuntu-restricted-extras (通过sudo apt-get install kubuntu-restricted-extas) 来播放 MP3 文件、观看 DVD 电影等。但有一件事已经困扰了我近两周:

只是理论上:假设我想删除这些包kubuntu-restricted-extras是指......我该如何实际做到这一点?

我听说过sudo apt-get --purge autoremove <packagename>,但这只是删除元包本身 - 至少对我来说是这样。

并不是说我对于在我的 PC 上安装这些软件包感到烦恼,而是我非常有兴趣学习如何处理这个“自动删除”功能。

再比如,在我的计算机上'apt-get autoremove --purge quassel'保留已安装的软件包quassel-data。我做错了什么吗?

感谢您的帮助!

附言:在写作时,我想到了另一个问题,不过这个问题相当小。我知道,有很多 PPA,通常包含各种软件的附加版本或更新版本……假设我想删除其中一个附加源,比如不稳定的 mesa 版本,我该如何将这些软件包(如 xorg、mesa 等)恢复为实际 Ubuntu 存储库中的版本(假设我已添加此 xorg-edgers PPA)?知道这一点也很好。

再次感谢您的帮助!

答案1

日志

Ubuntu 社区:https://help.ubuntu.com/community/LinuxLogFiles

apt 日志:/var/log/apt/...

dpkg 日志:/var/log/dpkg.log...

保存自己的日志 - logsave

LOGSAVE(8)                                  System Manager's Manual                                  LOGSAVE(8)

NAME
       logsave - save the output of a command in a logfile

SYNOPSIS
       logsave [ -asv ] logfile cmd_prog [ ... ]

DESCRIPTION
       The  logsave program will execute cmd_prog with the specified argument(s), and save a copy of its output
       to logfile.  If the containing directory for logfile does not exist, logsave will accumulate the  output
       in memory until it can be written out.  A copy of the output will also be written to standard output.

在这儿

当安装/升级/删除某些内容时,我将使用 logsave 将输出保存到人类可读的文件中。

如果我想删除“kubuntu-restricted-extras”,我会查看日志文件:

Log of sudo apt-get install kubuntu-restricted-extras libdvdcss2 
Sun Apr 20 17:07:16 2014

Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
  chromium-codecs-ffmpeg-extra freepats gstreamer1.0-libav
  gstreamer1.0-plugins-bad gstreamer1.0-plugins-bad-faad
  gstreamer1.0-plugins-bad-videoparsers gstreamer1.0-plugins-ugly
  kubuntu-restricted-addons lame liba52-0.7.4 libass4 libchromaprint0
  libcroco3 libdc1394-22 libdca0 libenca0 libfaad2 libfftw3-double3 libflite1
  libfluidsynth1 libgme0 libgstreamer-plugins-bad1.0-0 libgtkglext1
  libk3b6-extracodecs libkate1 libmad0 libmimic0 libmms0 libmodplug1
  libmpeg2-4 libmpg123-0 libnspr4-0d libnss3-1d libofa0 libopenal-data
  libopenal1 libopencore-amrnb0 libopencore-amrwb0 libopencv-calib3d2.4
  libopencv-contrib2.4 libopencv-core2.4 libopencv-features2d2.4
  libopencv-flann2.4 libopencv-highgui2.4 libopencv-imgproc2.4
  libopencv-legacy2.4 libopencv-ml2.4 libopencv-objdetect2.4
  libopencv-video2.4 libpangox-1.0-0 librsvg2-2 librsvg2-common libsidplay1
  libsoundtouch0 libspandsp2 libsrtp0 libswscale2 libtbb2 libtwolame0
  libvo-aacenc0 libvo-amrwbenc0 libwildmidi-config libwildmidi1 libzbar0
  nepomuk-core-ffmpegextractor oxideqt-codecs-extra unrar
Suggested packages:
  frei0r-plugins libchromaprint-tools python-acoustid libfftw3-bin
  libfftw3-dev libportaudio2 libroar-compat2 librsvg2-bin sidplay-base
  xsidplay srtp-utils
Recommended packages:
  flashplugin-installer libavcodec-extra-53
The following NEW packages will be installed:
  chromium-codecs-ffmpeg-extra freepats gstreamer1.0-libav
  gstreamer1.0-plugins-bad gstreamer1.0-plugins-bad-faad
  gstreamer1.0-plugins-bad-videoparsers gstreamer1.0-plugins-ugly
  kubuntu-restricted-addons kubuntu-restricted-extras lame liba52-0.7.4
  libass4 libchromaprint0 libcroco3 libdc1394-22 libdca0 libdvdcss2 libenca0
  libfaad2 libfftw3-double3 libflite1 libfluidsynth1 libgme0
  libgstreamer-plugins-bad1.0-0 libgtkglext1 libk3b6-extracodecs libkate1
  libmad0 libmimic0 libmms0 libmodplug1 libmpeg2-4 libmpg123-0 libnspr4-0d
  libnss3-1d libofa0 libopenal-data libopenal1 libopencore-amrnb0
  libopencore-amrwb0 libopencv-calib3d2.4 libopencv-contrib2.4
  libopencv-core2.4 libopencv-features2d2.4 libopencv-flann2.4
  libopencv-highgui2.4 libopencv-imgproc2.4 libopencv-legacy2.4
  libopencv-ml2.4 libopencv-objdetect2.4 libopencv-video2.4 libpangox-1.0-0
  librsvg2-2 librsvg2-common libsidplay1 libsoundtouch0 libspandsp2 libsrtp0
  libswscale2 libtbb2 libtwolame0 libvo-aacenc0 libvo-amrwbenc0
  libwildmidi-config libwildmidi1 libzbar0 nepomuk-core-ffmpegextractor
  oxideqt-codecs-extra unrar
0 upgraded, 69 newly installed, 0 to remove and 0 not upgraded.
Need to get 52.3 MB of archives.
After this operation, 95.8 MB of additional disk space will be used.
Do you want to continue? [Y/n]

并将文件列表复制粘贴到

sudo apt-get purge <files>

相关内容