LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 04-10-2009, 02:30 PM   #1
sectore
LQ Newbie
 
Registered: Apr 2009
Posts: 1

Rep: Reputation: 0
Deleting directories


what directories do you actually go forth with rm'ing? Some you link files in them to other places.

Code:
root:/sources# ls -al   
total 506868
drwxrwxr-x 28 1000   125      4096 Apr 10 06:10 .
drwxr-xr-x 22 root root       4096 Apr 10 05:59 ..
-rw-r--r--  1  125   125   1195259 Dec  8 22:18 autoconf-2.63.tar.bz2
-rw-r--r--  1  125   125      2592 Nov 23 03:19 automake-1.10.1-test_fix-1.patch
-rwxr-xr-x  1  125   125    918341 Dec  8 22:18 automake-1.10.1.tar.bz2
drwxr-xr-x 12 1000   102      4096 Apr 10 04:42 bash-3.2
-rw-r--r--  1  125   125     66704 Nov 23 03:19 bash-3.2-fixes-8.patch
-rwxr-xr-x  1  125   125   2529838 Dec  8 22:19 bash-3.2.tar.gz
-rw-r--r--  1  125   125   2194482 Oct 11  2006 bash-doc-3.2.tar.gz
drwxr-xr-x 15 1000   102      4096 Apr 10 04:28 binutils-2.18
-rw-r--r--  1  125   125      1191 Nov 23 03:19 binutils-2.18-GCC43-1.patch
-rw-r--r--  1  125   125       932 Nov 23 03:19 binutils-2.18-configure-1.patch
-rwxr-xr-x  1  125   125  14962245 Dec  8 22:20 binutils-2.18.tar.bz2
drwxr-xr-x 11 1000   102      4096 Apr 10 04:31 binutils-build
-rwxr-xr-x  1  125   125   1080319 Dec  8 22:20 bison-2.3.tar.bz2
drwxr-xr-x  2 1000   102      4096 Apr 10 04:44 bzip2-1.0.5
-rw-r--r--  1  125   125      1684 Nov 23 03:19 bzip2-1.0.5-install_docs-1.patch
-rw-r--r--  1  125   125    841402 Dec  8 22:21 bzip2-1.0.5.tar.gz
drwxr-xr-x 13 1000   102      4096 Apr 10 04:46 coreutils-6.12
-rw-r--r--  1  125   125    103810 Nov 23 03:19 coreutils-6.12-i18n-2.patch
-rw-r--r--  1  125   125      3371 Nov 23 03:19 coreutils-6.12-old_build_kernel-1.patch
-rw-r--r--  1  125   125      4634 Nov 23 03:19 coreutils-6.12-uname-1.patch
-rw-r--r--  1  125   125   9001890 Dec  8 22:21 coreutils-6.12.tar.gz
-rw-r--r--  1  125   125      1945 Nov 23 03:19 db-4.7.25-upstream_fixes-1.patch
-rwxr--r--  1  125   125  13124129 Dec  8 22:20 db-4.7.25.tar.gz
-rwxr-xr-x  1  125   125   1080346 Dec  8 22:21 dejagnu-1.4.4.tar.gz
drwxr-xr-x 10 1000   102      4096 Apr 10 05:12 diffutils-2.8.1
-rw-r--r--  1  125   125     18210 Nov 23 03:19 diffutils-2.8.1-i18n-1.patch
-rwxr-xr-x  1  125   125    780086 Dec  8 22:22 diffutils-2.8.1.tar.gz
drwxr-xr-x 19 1000   102      4096 Apr 10 05:14 e2fsprogs-1.41.3
-rw-r--r--  1  125   125   4365234 Oct 13 03:28 e2fsprogs-1.41.3.tar.gz
-rw-r--r--  1  125   125      6824 Nov 23 03:19 expect-5.43.0-spawn-1.patch
-rw-r--r--  1  125   125      4150 Nov 23 03:19 expect-5.43.0-tcl_8.5.5_fix-1.patch
-rwxr-xr-x  1  125   125    525572 Dec  8 22:24 expect-5.43.0.tar.gz
-rw-r--r--  1  125   125    584803 Dec  8 22:25 file-4.26.tar.gz
drwxr-xr-x 12 1000   102      4096 Apr 10 05:17 findutils-4.4.0
-rw-r--r--  1  125   125   2029809 Dec  8 22:25 findutils-4.4.0.tar.gz
-rwxr-xr-x  1  125   125   1256501 Dec  8 22:26 flex-2.5.35.tar.bz2
drwxr-xr-x 15 1000   102      4096 Apr 10 05:19 gawk-3.1.6
-rwxr-xr-x  1  125   125   1861630 Dec  8 22:27 gawk-3.1.6.tar.bz2
-rw-r--r--  1  125   125  58929447 Dec  8 22:27 gcc-4.3.2.tar.bz2
drwxr-xr-x 11 1000   102      4096 Nov  7  2007 gettext-0.17
-rwxr-xr-x  1  125   125  11640890 Dec  8 22:28 gettext-0.17.tar.gz
drwxr-sr-x 68 9024 65515      4096 Sep 29  2008 glibc-2.8-20080929
-rw-r--r--  1  125   125      1794 Nov 23 03:19 glibc-2.8-20080929-iconv_tests-1.patch
-rw-r--r--  1  125   125      1048 Nov 23 03:19 glibc-2.8-20080929-ildoubl_test-1.patch
-rw-r--r--  1  125   125  16231976 Dec  8 22:37 glibc-2.8-20080929.tar.bz2
drwxr-xr-x 59 root root       4096 Apr 10 13:45 glibc-build
-rw-r--r--  1  125   125   1710660 Sep 20  2008 gmp-4.2.4.tar.bz2
drwxr-xr-x 11 1000   102      4096 Apr 10 05:23 grep-2.5.3
-rw-r--r--  1  125   125     27544 Nov 23 03:19 grep-2.5.3-debian_fixes-1.patch
-rw-r--r--  1  125   125      5906 Nov 23 03:19 grep-2.5.3-upstream_fixes-1.patch
-rwxr-xr-x  1  125   125    618184 Dec  8 22:38 grep-2.5.3.tar.bz2
-rw-r--r--  1  125   125    388043 Nov 23 03:19 groff-1.18.1.4-debian_fixes-1.patch
-rwxr-xr-x  1  125   125   2318983 Dec  8 22:38 groff-1.18.1.4.tar.gz
-rw-r--r--  1  125   125      4901 Nov 23 03:19 grub-0.97-256byte_inode-1.patch
-rw-r--r--  1  125   125     28326 Nov 23 03:19 grub-0.97-disk_geometry-1.patch
-rwxr-xr-x  1  125   125    971783 Dec  8 22:39 grub-0.97.tar.gz
drwxr-xr-x 15 1000   102      4096 Apr 10 05:26 gzip-1.3.12
-rwxr-xr-x  1  125   125    462169 Dec  8 22:39 gzip-1.3.12.tar.gz
-rw-r--r--  1  125   125    205618 Dec  8 22:39 iana-etc-2.30.tar.bz2
-rw-r--r--  1  125   125      5470 Nov 23 03:19 inetutils-1.5-no_server_man_pages-2.patch
-rwxr-xr-x  1  125   125   1390529 Dec  8 22:40 inetutils-1.5.tar.gz
-rw-r--r--  1  125   125    359574 Dec  8 22:40 iproute2-2.6.26.tar.bz2
-rw-r--r--  1  125   125     12369 Nov 23 03:19 kbd-1.14.1-backspace-1.patch
-rw-r--r--  1  125   125   1010836 Dec  8 22:41 kbd-1.14.1.tar.gz
-rwxr-xr-x  1  125   125    299213 Dec  8 22:41 less-418.tar.gz
-rw-r--r--  1  125   125     42635 Nov 23 03:18 lfs-bootscripts-20081031.tar.bz2
-rw-r--r--  1 root root  258534276 Dec 20 21:47 lfs-packages-6.4.tar.bz2
-rw-r--r--  1 root root         59 Dec 20 21:48 lfs-packages-6.4.tar.bz2.md5
-rw-r--r--  1  125   125   2870524 Dec  8 22:41 libtool-2.2.6a.tar.gz
drwxrwxr-x 23 root root       4096 Apr 10 06:07 linux-2.6.27.4
-rw-rw-r--  1  125   125  50359534 Oct 26 04:21 linux-2.6.27.4.tar.bz2
drwxr-xr-x 10 1000   102      4096 Apr 10 05:27 m4-1.4.12
-rw-r--r--  1  125   125    900132 Oct 11 12:47 m4-1.4.12.tar.bz2
drwxr-xr-x  9 1000   102      4096 Apr 10 05:29 make-3.81
-rwxr-xr-x  1  125   125   1151445 Dec  8 22:44 make-3.81.tar.bz2
-rw-r--r--  1  125   125   1772873 Dec  8 22:44 man-db-2.5.2.tar.gz
drwxr-xr-x 11 1000   100      4096 Oct  7  2008 man-pages-3.11
-rw-r--r--  1  125   125    987708 Oct  7  2008 man-pages-3.11.tar.bz2
-rw-r--r--  1  125   125     35046 Nov 23 03:19 module-init-tools-3.4.1-manpages-1.patch
-rw-r--r--  1  125   125    195465 Dec  8 22:45 module-init-tools-3.4.1.tar.bz2
-rw-r--r--  1  125   125    986373 Dec  8 22:46 mpfr-2.3.2.tar.bz2
drwxr-xr-x 18 1000   102      4096 Apr 10 04:34 ncurses-5.6
-rw-r--r--  1  125   125     17233 Nov 23 03:19 ncurses-5.6-coverity_fixes-1.patch
-rwxr-xr-x  1  125   125   2402592 Dec  8 22:46 ncurses-5.6.tar.gz
drwxr-xr-x  4 1000   102      4096 Apr 10 05:30 patch-2.5.4
-rwxr-xr-x  1  125   125    186879 Dec  8 22:46 patch-2.5.4.tar.gz
drwxr-xr-x 32 1000   102     12288 Apr 10 05:33 perl-5.10.0
-rw-r--r--  1  125   125      7186 Nov 23 03:19 perl-5.10.0-consolidated-1.patch
-rwxr-xr-x  1  125   125  15595020 Dec  8 22:46 perl-5.10.0.tar.gz
-rw-r--r--  1  125   125      3606 Nov 23 03:19 procps-3.2.7-watch_unicode-1.patch
-rwxr-xr-x  1  125   125    281965 Dec  8 22:47 procps-3.2.7.tar.gz
-rwxr-xr-x  1  125   125    283532 Dec  8 22:47 psmisc-22.6.tar.gz
-rw-r--r--  1  125   125     18769 Nov 23 03:19 readline-5.2-fixes-5.patch
-rwxr-xr-x  1  125   125   2037705 Dec  8 22:47 readline-5.2.tar.gz
drwxr-xr-x  9 1000   102      4096 Apr 10 05:34 sed-4.1.5
-rwxr-xr-x  1  125   125    799584 Dec  8 22:47 sed-4.1.5.tar.gz
-rw-r--r--  1  125   125   1697517 Dec  8 22:48 shadow-4.1.2.1.tar.bz2
-rwxr-xr-x  1  125   125     86557 Dec  8 22:48 sysklogd-1.5.tar.gz
-rwxr-xr-x  1  125   125     99009 Dec  8 22:48 sysvinit-2.86.tar.gz
drwxr-xr-x 11 1000   102      4096 Apr 10 05:35 tar-1.20
-rw-r--r--  1  125   125   1912591 Dec  8 22:48 tar-1.20.tar.bz2
drwxr-xr-x 12 1000   102      4096 Oct 14 19:44 tcl8.5.5
-rw-r--r--  1  125   125   4405210 Oct 14 19:54 tcl8.5.5-src.tar.gz
drwxr-xr-x 12 1000   102      4096 Apr 10 05:37 texinfo-4.13
-rw-r--r--  1  125   125   2751071 Sep 22  2008 texinfo-4.13a.tar.gz
-rw-r--r--  1  125   125    442846 Oct  7  2008 udev-130.tar.bz2
-rw-r--r--  1  125   125     12917 Nov 23 03:18 udev-config-20081015.tar.bz2
drwxr-xr-x 23 1000   102      4096 Apr 10 05:39 util-linux-ng-2.14.1
-rw-r--r--  1  125   125   2929618 Dec  8 22:51 util-linux-ng-2.14.1.tar.bz2
-rw-r--r--  1  125   125     29332 Nov 23 03:19 vim-7.2-fixes-3.patch
-rw-r--r--  1  125   125   1365638 Dec  8 22:53 vim-7.2-lang.tar.gz
-rw-r--r--  1  125   125   7203291 Dec  8 22:51 vim-7.2.tar.bz2
-rw-r--r--  1  125   125    425209 Jul 18  2005 zlib-1.2.3.tar.bz2
root:/sources#
 
Old 04-10-2009, 03:16 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
After I build a new system, I move linux* to /usr/src so I keep my kernel source and any necessary patches (but don't create the /usr/src/linux symlink). Because I use CLFS and not LFS, I also keep the CLFS bootscripts in /root since the CLFS bootscript package contains scripts for CBLFS packages as well. After that I delete /sources.

I also move /tools to /tools_bak and /cross-tools to /cross-tools_bak. Rather than deleting these directories, which you don't need, this will allow you to restore them if you find that something accidentally got linked against something in the temporary system. After a few weeks, I delete these directories as well.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Deleting directories NomadABC Linux - Newbie 2 02-10-2005 03:11 PM
rm command - deleting directories Micro420 Linux - Newbie 11 11-02-2003 03:18 PM
Deleting Directories J_Bone Linux - Newbie 4 08-17-2003 05:19 PM
deleting directories AZDAVE Linux - Newbie 1 08-15-2003 11:05 AM
Deleting directories with files in them AMDPwred Linux - General 7 02-16-2003 01:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 01:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration