Pakete im Status rc entfernen

Der Status rc beschreibt das einfache Entfernen eines Paketes, bei dem die Configdateien auf der Platte verbleiben. Das passiert entweder, wenn man die Pakete mit apt-get remove paketname löscht oder sie aufgrund eine Abhängigkeit mit entfernt werden. Selbst dann, wenn das „Hauptpaket“ mit –purge entfernt wurde.

Paketstatis ermitteln

# dpkg -l | grep ^rc
rc  linux-image-3.13.0-35-generic        3.13.0-35.62                           amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
rc  linux-image-3.13.0-37-generic        3.13.0-37.64                           amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
rc  linux-image-3.13.0-46-generic        3.13.0-46.79                           amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
rc  linux-image-3.13.0-48-generic        3.13.0-48.80                           amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
rc  linux-image-3.13.0-55-generic        3.13.0-55.94                           amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
rc  linux-image-extra-3.13.0-35-generic  3.13.0-35.62                           amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
rc  linux-image-extra-3.13.0-37-generic  3.13.0-37.64                           amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
rc  linux-image-extra-3.13.0-46-generic  3.13.0-46.79                           amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
rc  linux-image-extra-3.13.0-48-generic  3.13.0-48.80                           amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
rc  linux-image-extra-3.13.0-55-generic  3.13.0-55.94                           amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP

Simulation der Paketlöschung

# dpkg --purge --simulate $(dpkg -l |grep ^rc |awk '{print $2}')
(Reading database ... 177405 files and directories currently installed.)
Would remove or purge linux-image-3.13.0-35-generic (3.13.0-35.62) ...
Would remove or purge linux-image-3.13.0-37-generic (3.13.0-37.64) ...
Would remove or purge linux-image-3.13.0-46-generic (3.13.0-46.79) ...
Would remove or purge linux-image-3.13.0-48-generic (3.13.0-48.80) ...
Would remove or purge linux-image-3.13.0-55-generic (3.13.0-55.94) ...
Would remove or purge linux-image-extra-3.13.0-35-generic (3.13.0-35.62) ...
Would remove or purge linux-image-extra-3.13.0-37-generic (3.13.0-37.64) ...
Would remove or purge linux-image-extra-3.13.0-46-generic (3.13.0-46.79) ...
Would remove or purge linux-image-extra-3.13.0-48-generic (3.13.0-48.80) ...
Would remove or purge linux-image-extra-3.13.0-55-generic (3.13.0-55.94) ...

Pakete im RC-Status löschen

# dpkg --purge $(dpkg -l |grep ^rc |awk '{print $2}')
(Reading database ... 177405 files and directories currently installed.)
Removing linux-image-3.13.0-35-generic (3.13.0-35.62) ...
Purging configuration files for linux-image-3.13.0-35-generic (3.13.0-35.62) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.13.0-35-generic /boot/vmlinuz-3.13.0-35-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.13.0-35-generic /boot/vmlinuz-3.13.0-35-generic
Removing linux-image-3.13.0-37-generic (3.13.0-37.64) ...
Purging configuration files for linux-image-3.13.0-37-generic (3.13.0-37.64) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.13.0-37-generic /boot/vmlinuz-3.13.0-37-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.13.0-37-generic /boot/vmlinuz-3.13.0-37-generic
Removing linux-image-3.13.0-46-generic (3.13.0-46.79) ...
Purging configuration files for linux-image-3.13.0-46-generic (3.13.0-46.79) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.13.0-46-generic /boot/vmlinuz-3.13.0-46-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.13.0-46-generic /boot/vmlinuz-3.13.0-46-generic
Removing linux-image-3.13.0-48-generic (3.13.0-48.80) ...
Purging configuration files for linux-image-3.13.0-48-generic (3.13.0-48.80) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.13.0-48-generic /boot/vmlinuz-3.13.0-48-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.13.0-48-generic /boot/vmlinuz-3.13.0-48-generic
Removing linux-image-3.13.0-55-generic (3.13.0-55.94) ...
Purging configuration files for linux-image-3.13.0-55-generic (3.13.0-55.94) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.13.0-55-generic /boot/vmlinuz-3.13.0-55-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.13.0-55-generic /boot/vmlinuz-3.13.0-55-generic
Removing linux-image-extra-3.13.0-35-generic (3.13.0-35.62) ...
Purging configuration files for linux-image-extra-3.13.0-35-generic (3.13.0-35.62) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.13.0-35-generic /boot/vmlinuz-3.13.0-35-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.13.0-35-generic /boot/vmlinuz-3.13.0-35-generic
Removing linux-image-extra-3.13.0-37-generic (3.13.0-37.64) ...
Purging configuration files for linux-image-extra-3.13.0-37-generic (3.13.0-37.64) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.13.0-37-generic /boot/vmlinuz-3.13.0-37-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.13.0-37-generic /boot/vmlinuz-3.13.0-37-generic
Removing linux-image-extra-3.13.0-46-generic (3.13.0-46.79) ...
Purging configuration files for linux-image-extra-3.13.0-46-generic (3.13.0-46.79) ...
Removing linux-image-extra-3.13.0-48-generic (3.13.0-48.80) ...
Purging configuration files for linux-image-extra-3.13.0-48-generic (3.13.0-48.80) ...
Removing linux-image-extra-3.13.0-55-generic (3.13.0-55.94) ...
Purging configuration files for linux-image-extra-3.13.0-55-generic (3.13.0-55.94) ...

Schreiben Sie einen Kommentar

Ihre E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert

* Die DSGVO-Checkbox ist ein Pflichtfeld

*

Zustimmung zur Datenspeicherung lt. DSGVO