LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
12
返回列表 发新帖
楼主: cdcchen

如何一次性把安装的软件包全部删除???????

[复制链接]
发表于 2006-6-22 05:39:50 | 显示全部楼层
Post by pluskid
而且估计所有的包都依赖于它吧,所以根据依赖关系估计所有的软件包都会被删掉。
我猜不是,正因所有的包都依赖於它,所以根据依赖关系,估计你是删不了它的
回复 支持 反对

使用道具 举报

发表于 2006-6-22 13:24:58 | 显示全部楼层
忽悠?  以前是有这么一帖啊,,

  lib6 删除,不过还有人说只要不重启,还能再装上。。。。。

我是没试过,不过你都要删除“所有”软件,我想你“应该” “想”试一下。。。
回复 支持 反对

使用道具 举报

发表于 2006-6-22 14:12:09 | 显示全部楼层
Post by d00m3d
我猜不是,正因所有的包都依赖於它,所以根据依赖关系,估计你是删不了它的

为什么删不掉?我还可以在 bash 里面 apt-get remove bash 呢。 嘿嘿!
回复 支持 反对

使用道具 举报

发表于 2006-6-22 17:17:49 | 显示全部楼层
root@BlackMesa:/#apt-get remove libc6
Reading package lists...
Building dependency tree...
The following extra packages will be installed:
  gcc-4.1-base
The following packages will be REMOVED:
  915resolution acerhk-modules-2.6.16.5-kanotix-2 acl acpi acpid
  acx-modules-2.6.16.5-kanotix-2 adduser adm8211-modules-2.6.16.5-kanotix-2
  aespipe afio aircrack akode akregator alevt alien alsa-base alsa-oss
  alsa-utils alsamixergui amarok amarok-arts amarok-engines amarok-gstreamer
  amarok-xine amsn apmd apt apt-build apt-show-versions apt-spy apt-utils
  aptitude ark arts artsbuilder at athcool atmel-firmware attr audacity
  aumix-gtk avm-modules-2.6.16.5-kanotix-2 awesfx base-files base-passwd bash
  bc bchunk bcrelay binutils bison bittornado bluez-hcidump bluez-pin
  bluez-utils bridge-utils bsdmainutils bsdutils btsco build-essential bzip2
  ca-certificates cabextract camorama camstream capiutils captive
  captive-install captive-kanotix captive-lufs cdebootstrap cdparanoia cdrdao
  cdrecord cdtool cervisia cfv checkmem-kanotix chkrootkit chntpw
  cloop-module-2.6.16.5-kanotix-2 cloop-utils configure-xawtv-kanotix
  console-common console-data console-tools convmv coreutils
  courier-authdaemon courier-base courier-mta cpio cpp cpp-4.0 cramfsprogs
  cron cryptsetup cupsconfig-kanotix cupsys cupsys-bsd cupsys-client
  cupsys-driver-gutenprint cvs dash dbus dcoprss dd-rhelp ddcxinfo-kanotix
  ddrescue debconf debconf-i18n debconf-utils debhelper debian-archive-keyring
  debianutils deborphan defoma desktop-file-utils devscripts dfontmgr dh-make
  dhcp-client dhcp3-common dhcp3-server dialog diff ding dirmngr discover1
  disktype dmidecode dmraid dmsetup dnsmasq dnsutils docker dosfstools dpkg
  dpkg-awk dpkg-dev dpkg-repack drdsl dselect dvb-utils dvbstream dvd+rw-tools
  dvdbackup dvdrtools dwl520e1-firmware e2fslibs e2fsprogs e2undel
  eagle-usb-utils eciadsl-usermode ed efax eject enscript etcskel-kanotix
  ethereal ethereal-common ethtool evolution-data-server expect expectk
  ext2resize exuberant-ctags fakeroot fbi fdutils file fileutils findutils
  firefox fix-fonts fontconfig fontconfig-config foomatic-bin
  foomatic-db-engine foomatic-db-gutenprint foomatic-db-hpijs foomatic-filters
  freeglut3 freenx fsam7400-modules-2.6.16.5-kanotix-2 ftp ftpd fttools
  fuse-utils fusecram fuseiso g++ g++-4.0 gamin gawk gcc gcc-4.0 gconf2
  gconf2-common gettext gettext-base gimp gnome-keyring gnome-vfs-httpcaptive
  gnuhtml2latex gnupg gnupg-agent gnupg2 gnutls-bin gocr gpart gpgsm gpm
  gprsconnect-kanotix grep groff-base grub-gfxboot gs gs-common gs-esp gs-gpl
  gsfonts gsfonts-x11 gstreamer0.8-mad gstreamer0.8-misc gstreamer0.8-oss
  gstreamer0.8-vorbis gtk-engines-industrial gtk-theme-switch
  gtk2-engines-industrial gtkam gv gwenview gzip hal hddtemp hdparm hfsplus
  hfsutils host hostap-utils hostname hpijs hping2 hplip hpoj hpoj-xojpanel
  html2text htop hwinfo hwsetup-ng icewm ifrename ifupdown ijsgutenprint
  imagemagick imlib-base imlib11 info infobash initrd-tools initscripts
  initscripts-kanotix-live installwatch intltool-debian ipppd iproute iptables
  iptraf iputils-ping iputils-tracepath ipx irda-utils isapnptools
  isdnactivecards isdnlog isdnutils-base isdnvboxclient isdnvboxserver itcl3
  itk3 ivtv-utils iwidgets4 java-package jfsutils joystick k3b
  k3b-defaults-kanotix k3b-i18n kaddressbook kadslwatch kaffeine
  kaffeine-mozilla kalarm kamera kandy kanet kanotix-dsl kanotix-irc
  kanotix-keyrings kanotix-ndiswrapper kanotix-screenres kanotix-scripts
  kanotix-setpassword kanotix-su kanotix-terminalserver kanotix-udev-config
  kappfinder karbon karm kasablanca kate kbdconfig-kanotix kcalc kcharselect
  kchart kcontrol kde-i18n-de kdeadmin-kfile-plugins kdeartwork-style
  kdeartwork-theme-window kdebase kdebase-bin kdebase-kio-plugins kdebluetooth
  kdegraphics-kfile-plugins kdelibs kdelibs-bin kdelibs4c2a
  kdemultimedia-kfile-plugins kdemultimedia-kio-plugins kdenetwork-filesharing
  kdepasswd kdepim kdepim-kfile-plugins kdepim-kio-plugins kdepim-kresources
  kdepim-wizards kdeprint kdesdk-scripts kdeservicemenus-kanotix kdesktop
  kdessh kdetv kdm kdoc kernel-package kexi kfax kfilereplace kfind kfloppy
  kformula kget kghostview khelpcenter kicker kimagemapeditor kio-apt
  kisdnwatch kitchensync kivio klaptopdaemon kleopatra klinkstatus klipper
  klogd kmail kmailcvt kmenuedit kmilo kmix knemo knet knetworkconf knode
  knotes knxcc knxcc-kde koffice koffice-libs kommander kompare konq-plugins
  konqueror konqueror-nsplugins konsole konsolekalendar kontact konversation
  kooka kopete korganizer korn koshell kpackage kpager kpdf kpersonalizer
  kpilot kppp kpresenter krename krfb krita krusader ksim ksmserver ksnapshot
  ksplash kspread ksvg ksync ksysguard ksysguardd ksysv kthesaurus ktip ktnef
  ktorrent kudzu-kanotix kugar kuser kviewshell kwalletmanager kwifimanager
  kwin kword kxsldbg language-env laptop-detect latex-xft-fonts leif less lha
  liba52-0.7.4 libaa1 libacl1 libadns1 libao2 libapm1 libappconfig-perl
  libapr0 libapt-pkg-perl libart-2.0-2 libarts1-mpeglib libarts1c2a libartsc0
  libasound2 libaspell15 libatk1.0-0 libatm1 libattr1 libaudio2 libaudiofile0
  libavahi-client3 libavahi-common3 libavahi-compat-libdnssd1 libavahi-glib1
  libavahi-qt3-1 libbeecrypt6 libbind9-0 libblkid1 libbluetooth1 libbonobo2-0
  libbonobo2-common libbonoboui2-0 libboost-filesystem1.33.1 libbz2-1.0 libc6
  libc6-dev libc6-i686 libcairo2 libcamel1.2-6 libcap1 libcapi20-3
  libcapi20-dev libccid libcdio6 libcdparanoia0 libcomerr2
  libconfig-inifiles-perl libconsole libconvert-binhex-perl
  libcrypt-blowfish-perl libcrypt-cbc-perl libcrypt-rijndael-perl
  libcupsimage2 libcupsys2 libcurl3 libcurl3-gnutls libcurses-perl
  libcvsservice0 libdate-manip-perl libdb3 libdb3-util libdb4.1 libdb4.2
  libdb4.3 libdb4.4 libdbi-perl libdbus-1-2 libdbus-glib-1-2 libdbus-qt-1-1c2
  libdc1394-13 libdebian-installer-extra4 libdebian-installer4
  libdevmapper1.02 libdiscover1 libdns21 libdrm2 libdv4 libdvbpsi4 libdvdnav4
  libdvdread3 libebook1.2-5 libecal1.2-3 libedata-book1.2-2 libedata-cal1.2-1
  libedataserver1.2-4 libedit2 libegroupwise1.2-8 libesd0 libevent1
  libexif-gtk5 libexif12 libexpat1 libezv24 libfinance-quote-perl libflac++5
  libflac7 libfltk1.1 libfontconfig1 libfontenc1 libfreetype6 libfribidi0
  libfs6 libft-perl libfuse2 libgadu3 libgamin0 libgcc1 libgconf2-4 libgcrypt1
  libgcrypt11 libgda2-3 libgda2-common libgdbm3 libgimp2.0 libgl1-mesa-dri
  libgl1-mesa-glx libglade-perl libglade2-0 libglib1.2 libglib2.0-0
  libglu1-mesa libglu1-xorg libgmp3c2 libgnokii2 libgnome-keyring0 libgnome2-0
  libgnome2-common libgnomecanvas2-0 libgnomeui-0 libgnomevfs2-0
  libgnomevfs2-common libgnutls11 libgnutls12 libgnutls13 libgnutls7
  libgpg-error0 libgpgme11 libgphoto2-2 libgphoto2-port0 libgpmg1 libgsf-1-114
  libgsm1 libgstreamer-gconf0.8-0 libgstreamer-plugins0.8-0 libgstreamer0.8-0
  libgtk-perl libgtk1.2 libgtk2.0-0 libgtk2.0-bin libgtk2.0-common
  libgutenprint2 libhal-storage1 libhal1 libhfsp0 libhtml-parser-perl
  libhtml-tableextract-perl libhtml-tagset-perl libhtml-template-perl
  libhtml-tree-perl libice6 libid3tag0 libidl0 libidn11 libieee1284-3
  libijs-0.35 libindex0 libio-multiplex-perl libio-stringy-perl libisc11
  libisccc0 libisccfg1 libiso9660-4 libiw28 libjack0.100.0-0 libjasper-1.701-1
  libjcode-pm-perl libjpeg-progs libjpeg62 libk3b2 libkcal2b libkcddb1
  libkdepim1a libkgantt0 libkipi0 libkjsembed1 libkleopatra1 libkmime2
  libkonq4 libkpimexchange1 libkpimidentities1 libkrb-1-kerberos4kth libkrb53
  libksba8 libkscan1 libksieve0 libktnef1 liblcms1 libldap2 liblircclient0
  liblocale-gettext-perl liblockdev1 libltdl3 liblua50 liblualib50 liblwres9
  liblzo1 libmad0 libmagic1 libmagick9 libmailtools-perl libmal1 libmeanwhile1
  libmikmod2 libmime-perl libmimelib1c2a libmng1 libmodplug0c2 libmpcdec3
  libmpeg2-4 libmusicbrainz4c2a libmysqlclient15off libncurses5 libncursesw5
  libneon25 libnet-daemon-perl libnetpbm10 libnews-nntpclient-perl libnewt0.52
  libnfsidmap1 libnspr4 libnss3 libntfs8 libogg0 liboggflac3 liboil0.3
  libopencdk8 libopenexr2c2a libopenobex-1.0-0 liborbit2 libpam-modules
  libpam0g libpango1.0-0 libpango1.0-common libpaper-utils libpaper1
  libparse-recdescent-perl libparted1.6-13 libpcap0.8 libpcd2 libpcre3
  libpcsclite1 libperl5.8 libperlmenu-perl libpisock8 libplrpc-perl libpng12-0
  libpoppler0c2 libpoppler0c2-qt libpopt0 libpq4 libpqxx-2.5.5c2a libpth2
  libqt3-mt librapi2 librapi2-tools libraw1394-5 libreadline4 libreadline5
  libresmgr1 libroken16-kerberos4kth librpm4 librss1 librsync1 libruby1.8
  libsamplerate0 libsane libsane-extras libsasl2 libsasl2-modules
  libsdl-image1.2 libsdl-mixer1.2 libsdl1.2debian libsdl1.2debian-oss
  libselinux1 libsensors3 libsepol1 libshout3 libsigc++-2.0-0c2a libslang2
  libslp1 libsm6 libsmbclient libsmpeg0 libsndfile1 libsnmp9 libsoup2.2-8
  libsp1c2 libspeex1 libsqlite3-0 libss2 libssl0.9.7 libssl0.9.8
  libstdc++2.10-glibc2.2 libstdc++5 libstdc++6 libstdc++6-4.0-dev libsvn0
  libsynce0 libsysfs2 libtag1c2a libtagc0 libtar libtasn1-0 libtasn1-2
  libtext-charwidth-perl libtext-iconv-perl libtext-wrapi18n-perl libtheora0
  libtidy-0.99-0 libtiff-tools libtiff4 libtimedate-perl libttf2
  libtunepimp2c2a libungif4g libunicode-string-perl libuniconf4.2 liburi-perl
  libusb-0.1-4 libuuid1 libvcdinfo0 libvideo-ivtv-perl libvisual0.2
  libvolume-id0 libvorbis0a libvorbisenc2 libvorbisfile3 libwavpack0 libwine
  libwine-gl libwmf0.2-7 libwpd8c2a libwrap0 libwv-1.2-1 libwv2-1c2
  libwvstreams4.2-base libwvstreams4.2-extras libwww-perl libwxgtk2.4-1
  libwxgtk2.4-1-python libwxgtk2.6-0 libx11-6 libx11-data libxau6 libxaw7
  libxcomp1 libxcompext1 libxcomposite1 libxcursor1 libxdamage1 libxdelta2
  libxdmcp6 libxext6 libxfixes3 libxfont1 libxft2 libxi6 libxine1 libxinerama1
  libxkbfile1 libxml-parser-perl libxml2 libxml2-utils libxmu6 libxmuu1
  libxosd2 libxp6 libxplc0.3.13 libxpm4 libxrandr2 libxrender1 libxslt1.1
  libxss1 libxt6 libxtrap6 libxtst6 libxv1 libxxf86dga1 libxxf86misc1
  libxxf86vm1 libzvbi0 lilo linneighborhood linux-headers-2.6.16.5-kanotix-2
  linux-image-2.6.16.5-kanotix-2 linux-sound-base lisa locales login logrotate
  lrzsz lsb-base lsof ltmodem-common ltmodem-modules-2.6.16.5-kanotix-2
  lvm-common lvm2 lynx lzop m4 macutils madwifi-modules-2.6.16.5-kanotix-2
  mailfilter make makedev man-db mawk mbmon mbr mc mdadm mdetect memtester
  menu mesa-utils metamail mkisofs mknbi modemlink-kanotix module-assistant
  module-init-tools modutils most mount mouseconfig-kanotix
  mozilla-firefox-locale-de mozilla-thunderbird mpack mpeglib mpg321 mpgtx
  mtd-tools mtools nano ncurses-base ncurses-bin
  ndiswrapper-modules-2.6.16.5-kanotix-2 ndiswrapper-utils net-tools netbase
  netcardconfig-kanotix netcat netkit-inetd netpbm netpipes
  networkconfig-kanotix networkstatus nfs-common nfs-kernel-server nmap
  normalize-audio ntfsprogs-gnomevfs ntpdate nvclock nxagent nxclient nxlibs
  nxsetup-kanotix nxtvepg omnibook-modules-2.6.16.5-kanotix-2 openssh-client
  openssh-server openssl openthesaurus-de-kword parted partimage passwd patch
  pciutils pcmciautils pcscd pdf-printerconfig-kanotix perl perl-base
  perl-modules perl-suid pia pinentry-qt pinfo pkg-config pmidi pmount pnm2ppa
  po-debconf portmap poster powermgmt-base powernowd ppp ppp-scripts-kanotix
  pppconfig pppdcapiplugin pppoe pppoeconf pppstatus
  ppscsi-modules-2.6.16.5-kanotix-2 pptp-linux pptpd print-utils-pfeifle
  procinfo procmail procps psfontmgr psmisc pstotext psutils pump
  pwc-modules-2.6.16.5-kanotix-2 pwgen python python-gtk2 python-qt3 python2.3
  python2.3-cairo python2.3-gtk2 python2.3-numeric python2.3-qt3
  python2.3-sip4-qt3 python2.4 python2.4-minimal
  qc-usb-messenger-modules-2.6.16.5-kanotix-2
  qc-usb-modules-2.6.16.5-kanotix-2 qca-tls qobex qsynaptics qtparted quanta
  quota radio rcconf rcs rdesktop rdiff-backup rebuildfstab-kanotix regionset
  reiser4progs reiserfsprogs rfb rfswitch-modules-2.6.16.5-kanotix-2
  rootshell-kanotix rovclock rpm rsync rt2400 rt2500
  rtl8180-sa2400-modules-2.6.16.5-kanotix-2 rxvt samba samba-common
  sambastart-kanotix sane sane-utils scanpartitions-kanotix scantv screen
  scsitools secpolicy sed setserial sfftobmp sgml-base shared-mime-info
  sharutils shfs-utils sitar skype sl-modem-daemon slang1a-utf8 smartmontools
  smbclient smbconf-kanotix smbfs smpeg-xmms sox sp
  spca5xx-modules-2.6.16.5-kanotix-2 spcaview speedtouch
  sqcam-modules-2.6.16.5-kanotix-2 squashfs-tools squid ssh sshstart-kanotix
  strace streamripper streamtuner subversion sudo sun-j2re1.4 supertux
  symlinks synce-dccm sysklogd syslinux sysutils sysv-freeze sysvinit tar
  tcl8.3 tcl8.4 tcltls tcpd tcpdump teclasat telnet testdisk tftpd-hpa
  thunderbird tidy tk8.4 tnef tofrodos traceroute transset ttf-arphic-uming
  ttf-bitstream-vera ttf-freefont ttmkfdir twm ucf udev udftools unionfs-utils
  unrar unzip unzoo usbutils usbview user-profile-kanotix usleep-kanotix
  util-linux util-linux-locales uuid-dev v4l-conf vcdimager vim vim-common
  vim-gtk vim-gui-common vlc vlc-plugin-alsa vnc-common vorbis-tools vpnc
  weechat-curses wget whiptail whois whowatch wine wine-utils winesetuptk
  wireless-tools wpasupplicant wv wvdial wxpython2.4-1 wxvlc x-ttcidfont-conf
  x-window-system-core x11-common xaw3dg xawtv xawtv-plugins xbase-clients
  xbitmaps xchat xchat-systray xcompmgr xdelta xdialog xdm xfonts-100dpi
  xfonts-100dpi-transcoded xfonts-75dpi xfonts-75dpi-transcoded xfonts-base
  xfonts-base-transcoded xfonts-bolkhov-cp1251-75dpi
  xfonts-bolkhov-cp1251-misc xfonts-encodings xfonts-intl-european
  xfonts-scalable xfonts-terminus xfonts-utils xfonts-wqy
  xfree86-driver-synaptics xfs xfsprogs xine-ui xlibmesa-dri xlibmesa-gl xlibs
  xlibs-data xloadimage xml-core xmms xmms-arts xmms-cdread xmms-crossfade
  xmms-flac xmms-goom xmms-volnorm xnest xpdf-utils xprint-common xresprobe
  xserver-xorg xserver-xorg-core xserver-xorg-input-all
  xserver-xorg-input-evdev xserver-xorg-input-kbd xserver-xorg-input-mouse
  xserver-xorg-input-synaptics xserver-xorg-video-all xserver-xorg-video-apm
  xserver-xorg-video-ark xserver-xorg-video-ati xserver-xorg-video-chips
  xserver-xorg-video-cirrus xserver-xorg-video-cyrix xserver-xorg-video-dummy
  xserver-xorg-video-fbdev xserver-xorg-video-glint xserver-xorg-video-i128
  xserver-xorg-video-i740 xserver-xorg-video-i810 xserver-xorg-video-imstt
  xserver-xorg-video-mga xserver-xorg-video-neomagic
  xserver-xorg-video-newport xserver-xorg-video-nsc xserver-xorg-video-nv
  xserver-xorg-video-rendition xserver-xorg-video-s3
  xserver-xorg-video-s3virge xserver-xorg-video-savage
  xserver-xorg-video-siliconmotion xserver-xorg-video-sis
  xserver-xorg-video-sisusb xserver-xorg-video-tdfx xserver-xorg-video-tga
  xserver-xorg-video-trident xserver-xorg-video-tseng xserver-xorg-video-vesa
  xserver-xorg-video-vga xserver-xorg-video-via xserver-xorg-video-vmware
  xserver-xorg-video-voodoo xterm xutils xutils-dev xvfb xvncviewer xxdiff
  yaird yakuake zd1211-firmware zip zlib1g
The following packages will be upgraded:
  gcc-4.1-base
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  apt libc6 (due to apt) libgcc1 (due to apt) libstdc++6 (due to apt)
  base-files gawk (due to base-files) base-passwd (due to base-files) bash
  debianutils (due to bash) libncurses5 (due to bash) bsdutils coreutils
  libacl1 (due to coreutils) libselinux1 (due to coreutils) diff dpkg
  e2fsprogs e2fslibs (due to e2fsprogs) libblkid1 (due to e2fsprogs)
  libcomerr2 (due to e2fsprogs) libdevmapper1.02 (due to e2fsprogs) libsepol1
  (due to e2fsprogs) libss2 (due to e2fsprogs) libuuid1 (due to e2fsprogs)
  findutils grep gzip hostname login libpam-modules (due to login) libpam0g
  (due to login) mount ncurses-base ncurses-bin perl-base sed sysvinit
  initscripts (due to sysvinit) tar util-linux lsb-base (due to util-linux)
  libslang2 (due to util-linux) zlib1g (due to util-linux)
1 upgraded, 0 newly installed, 1205 to remove and 5 not upgraded.
Need to get 0B/186kB of archives.
After unpacking 1745MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
?]

我试了,。。。哈哈!
To continue type in the phrase 'Yes, do as I say!'

为了防止意外,系统是要求用户认真知道自己要干什麽,并且回答整句 Yes, do as I say! 才会动作

Debian 的防护系统果然不错!

不过,有点奇怪的是,系统居然会要求升级安装 gcc-4.1-base,实在不解!
回复 支持 反对

使用道具 举报

发表于 2006-6-22 17:54:06 | 显示全部楼层
那么就是说可以用这种方法来找到所有的 essential packages 了. 有没有什么方法可以保留所有的 essential packages 而删除其它所有的包呢? 或者有没有什么方法让系统回复到初始的设置?
回复 支持 反对

使用道具 举报

发表于 2006-7-6 12:59:31 | 显示全部楼层
aptitude -y --purge-unused purge `aptitude search '!~E~i!~M' | awk '{ print $2 }' `
回复 支持 反对

使用道具 举报

发表于 2006-7-6 13:46:33 | 显示全部楼层
这么费劲干嘛,要删除所有的包,格式化不就OK了?所有的包全删除,系统还有存在的必要吗?
回复 支持 反对

使用道具 举报

发表于 2006-7-7 11:50:48 | 显示全部楼层
我猜不是,正因所有的包都依赖於它,所以根据依赖关系,估计你是删不了它的
windows思想  哈哈
楼主可能需要这个
#rm -rf /
回复 支持 反对

使用道具 举报

发表于 2006-7-7 11:52:12 | 显示全部楼层
deborphan 可以找到无用的“孤儿”包。。 主要是一些lib
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表