Difference between revisions of "Root filesystem clean up procedure"
Line 1: | Line 1: | ||
<h1 class="firstHeading">Root filesystem clean up procedure</h1> | <h1 class="firstHeading">Root filesystem clean up procedure</h1> | ||
− | + | Derived from a Fermin's message to the list [https://lists.dit.upm.es/pipermail/vnuml-devel/2006-June/000411.html 1] | |
− | This is a description of the general procedure carried out to clean up a root_fs after upgrading/installing new packages | + | This is a description of the general procedure carried out to clean up a root_fs after upgrading/installing new packages. |
In order to clean the filesystem two steps should be performed, in sequence: | In order to clean the filesystem two steps should be performed, in sequence: |
Revision as of 19:19, 15 October 2006
Root filesystem clean up procedure
Derived from a Fermin's message to the list 1
This is a description of the general procedure carried out to clean up a root_fs after upgrading/installing new packages.
In order to clean the filesystem two steps should be performed, in sequence:
- "Inside" filesystem (I mean, using a running virtual machine that uses this filesystem as <fylesystem type="direct"> or mounting it and chrooting from host):
- Clean the APT cache (after apt-get update, install, upgrade, etc. or whatever other APT operation)
- It is not exactly a clean up operation, but if the /lib/tls directory exists (it seems to be created sometimes during the upgrading of some packages) rename it to /lib/tls.disabled (removing previous existing /lib/tls.disabled directory) (*)
- It is not exactly a clean up operation, but you should also edit and change the /etc/root_fs_tutorial-version file (*)
- "Outside" filesystem, supposing is mounted in /mnt/loop
apt-get clean
cd /mnt/loop/var/cache/apt rm -f pkgcache.bin srcpkgcache.bin (**) cd /mnt/loop/tmp rm -rf * rm -f /mnt/loop/root/.bash_history cd /mnt umount /mnt/loop
(*) This step also can be done from "outside" filesystem
(**) And, in general, any other file, except the archive/ directory
test stuff to delete:
- "Inside" filesystem (I mean, using a running virtual machine that uses this filesystem as <fylesystem type="direct"> or mounting it and chrooting from host):
- Clean the APT cache (after apt-get update, install, upgrade, etc. or whatever other APT operation)
- apt-get clean
- It is not exactly a clean up operation, but if the /lib/tls directory exists (it seems to be created sometimes during the upgrading of some packages) rename it to /lib/tls.disabled (removing previous existing /lib/tls.disabled directory) (*)
- It is not exactly a clean up operation, but you should also edit and change the /etc/root_fs_tutorial-version file (*)
- "Outside" filesystem, supposing is mounted in /mnt/loop
cd /mnt/loop/var/cache/apt rm -f pkgcache.bin srcpkgcache.bin (**) cd /mnt/loop/tmp rm -rf * rm -f /mnt/loop/root/.bash_history cd /mnt umount /mnt/loop
List Examples:
Wiki:
You can even do mixed lists
- and nest them
- inside each other
- or break lines
in lists.
- definition lists
- can be
- nested
- too
- or break lines
HTML:
- list item A1
- list item B1
- list item B2
- list item A2