Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Purging packages from the 7.0.5DVD, installing previous package selections

  1. #1
    Senior Member registered user
    Join Date
    Sep 2006
    Posts
    802

    Purging packages from the 7.0.5DVD, installing previous package selections

    Most of this has been posted earlier, but here it is, checked for 7.0.5.

    To make room for other programs in a remastering, purging is needed. Everything isn't equally safe to purge, but games, some documentation and some language support is usually safe. We can also always reinstall something should things go wrong.

    To find out what takes the most space, we can issue a command like this:

    Code:
    dpkg-query -W --showformat='${Installed-Size} ${Section} ${Package}\n' | sort -n > knx705_DVDpack_size.txt
    Looking at the end of the file created, we can check if the packages taking up the most space are really things we need to have installed. Just remember that nowadays, a program often comes as a set of packages, and every package of that set being small doesn't guarantee that the totality is.

    This is my main list of purges. It can be put in a shell script and executed at once, but I prefer to run the lines one by one. Also, it may be a good idea to omit the "-y" command, to be able to stop a purging in process - aptitude tells what it has figured out to do, and gives you the choice to not accept it.

    Code:
    # Purging 7.0.5 DVD
    sudo aptitude -y purge `dpkg-query -W --showformat='${Section} ${Package}\n' | grep ^games | cut -d' ' -f2`
    sudo aptitude -y purge `dpkg-query -W --showformat='${Section} ${Package}\n' | grep bacula | cut -d' ' -f2`
    sudo aptitude purge `dpkg-query -W --showformat='${Section} ${Package}\n' | grep ^editors | grep lyx | cut -d' ' -f2`
    sudo aptitude purge `dpkg-query -W --showformat='${Section} ${Package}\n' | grep ^editors | grep abiword | cut -d' ' -f2`
    sudo aptitude purge `dpkg-query -W --showformat='${Section} ${Package}\n' | grep ^gnome | grep gnucash | cut -d' ' -f2`
    sudo aptitude purge `dpkg-query -W --showformat='${Section} ${Package}\n' | grep ^gnome | grep nautilus | cut -d' ' -f2`
    sudo aptitude purge `dpkg-query -W --showformat='${Section} ${Package}\n' | grep ^mail | grep kmail | cut -d' ' -f2`
    sudo aptitude purge `dpkg-query -W --showformat='${Section} ${Package}\n' | grep ^mail | grep icedove | cut -d' ' -f2`
    sudo aptitude purge `dpkg-query -W --showformat='${Section} ${Package}\n' | grep ^utils | grep amanda | cut -d' ' -f2`
    sudo aptitude purge `dpkg-query -W --showformat='${Section} ${Package}\n' | grep ^web | grep chromium | cut -d' ' -f2`
    sudo aptitude -y purge `dpkg-query -W --showformat='${Section} ${Package}\n' | grep ^kde | grep l10n | cut -d' ' -f2`
    sudo aptitude -y purge `dpkg-query -W --showformat='${Section} ${Package}\n' | grep ^graphics | grep inkscape | cut -d' ' -f2`
    sudo aptitude -y purge `dpkg-query -W --showformat='${Section} ${Package}\n' | grep ^graphics | grep scribus-ng | cut -d' ' -f2`
    sudo aptitude -y purge `dpkg-query -W --showformat='${Section} ${Package}\n' | grep ^doc | grep gimp-help-de | cut -d' ' -f2`
    In addition, to make room for more Java servers etc, I do some extra purging, like:

    Code:
    sudo aptitude -y purge `dpkg-query -W --showformat='${Section} ${Package}\n' | grep openshot | cut -d' ' -f2`
    sudo aptitude  purge `dpkg-query -W --showformat='${Section} ${Package}\n' | grep oxygencursors | cut -d' ' -f2`
    sudo aptitude  purge `dpkg-query -W --showformat='${Section} ${Package}\n' | grep gnome-user-guide | cut -d' ' -f2`
    sudo aptitude -y purge `dpkg-query -W --showformat='${Section} ${Package}\n' | grep qt4-demos | cut -d' ' -f2`
    When it is all done, it's time for some install. This is a way to recover, as far as possible, an earlier selection of packages - in this case the extra R and math packages I installed with 6.4.4, the selection list was then written to disk with the command
    Code:
    dpkg-query -W --showformat='${Section} ${Package}\n' | sort -n > knx644_64_sqpack_sect1.txt
    in the packlists subdirectory.

    Now, I can recover parts of that selection by using this type of command

    Code:
    sudo aptitude install `cat packlists/knx644_64_sqpack_sect1.txt | grep ^gnu-r | cut -d' ' -f2` 
    sudo aptitude install `cat packlists/knx644_64_sqpack_sect1.txt | grep ^math | cut -d' ' -f2`
    It turned out, that the math category from that install would now occupy ca 350MB extra - I therefore decided to wait and go for a smaller selection.

  2. #2
    Junior Member
    Join Date
    Jan 2013
    Posts
    17
    In synaptic, I came across debfoster as being installed and its description looked useful so i ran it from the terminal. The first item to come up is bluez-utils that is keeping 33 packages installed. Why can't I see that in my installed packages? Is there a debfoster command that tells me what package is keeping bluez-utils installed? Is bluez-utils useful? thanks for any guidance

  3. #3
    Junior Member
    Join Date
    Jan 2013
    Posts
    17

    debfoster

    sorry guys, was looking in the wrong section for bluez-utils in Synaptic. Found it and removed it (dont need bluetooth support. Why was it included in the first place? Does knoppix know that my comp supports bluetooth?

  4. #4
    Senior Member registered user
    Join Date
    Sep 2006
    Posts
    802
    Quote Originally Posted by dunnthebum View Post
    sorry guys, was looking in the wrong section for bluez-utils in Synaptic. Found it and removed it (dont need bluetooth support. Why was it included in the first place? Does knoppix know that my comp supports bluetooth?
    Both the CD and, in particular, the DVD version of Knoppix contains loads of programs you will not use - but someone needs it, like bluetooth support. If you install the debtree package, you can see dependencies. Try (with bluez-utils installed) the pipe

    Code:
    debtree bluez-utils | dot -Tps | okular - &
    You may be astonished

  5. #5
    Junior Member
    Join Date
    Jan 2013
    Posts
    17

    problem installing debtree

    on installing debtree:

  6. #6
    Junior Member
    Join Date
    Jan 2013
    Posts
    17

    problem installing debtree

    sorry, cut & paste didnt work. Here it is using 'insert inline' hope it can be readScreenshot from &#50.png

  7. #7
    Senior Member registered user
    Join Date
    Sep 2006
    Posts
    802
    I had no problems installing debtree with Synaptic on a thorougly purged 7.0.5 DVD version.
    So it's no general error, at least.

  8. #8
    Senior Member registered user
    Join Date
    Sep 2006
    Posts
    802
    After having done a couple of 7.0.5 remasterings after different levels of purging, I think I have to warn, generally, against purging. Too many packages are removed, and worse still, reinstalling the dysfunctional programs doesn't always fix the problems. I have still not been able to get konqueror up and running, even with no extensive purging of KDE packages. This is a new problem, the same methods have worked fine on earlier Knoppix releases. It is also quite frustrating to have a system that seems to work well, but then suddenly something is broken, and the standard ways to fix it don't work. So, if KK would leave about a GB worth of space on the DVD (about the size of installed games), it would be very helpful to us who need to remaster to accomodate large extra installs. Purging used to be a safe and nice thing to do, I can't say it is anymore.

  9. #9
    Junior Member
    Join Date
    Jun 2012
    Posts
    19

    Has anyone created a minimal 7.0.5? Willing to share?

    Quote Originally Posted by Capricorny View Post
    After having done a couple of 7.0.5 remasterings after different levels of purging, I think I have to warn, generally, against purging. Too many packages are removed, and worse still, reinstalling the dysfunctional programs doesn't always fix the problems. I have still not been able to get konqueror up and running, even with no extensive purging of KDE packages. This is a new problem, the same methods have worked fine on earlier Knoppix releases. It is also quite frustrating to have a system that seems to work well, but then suddenly something is broken, and the standard ways to fix it don't work. So, if KK would leave about a GB worth of space on the DVD (about the size of installed games), it would be very helpful to us who need to remaster to accomodate large extra installs. Purging used to be a safe and nice thing to do, I can't say it is anymore.
    I am one of those who have tried to pare Knoppix down to a minimal size, in order to then construct a customized, modular Knoppix using the ramdisk KNOPPIX 2-9 method. I might suggest, that a minimal Knoppix need only be created once and that anyone who has such a beast made from 7.0.5 and would share it would probably have the undying gratitude of those of us who are struggling with this.

    Along this line, is it possible to include the 64 bit kernel with the cd version in order to boot into 64-bit or are there other components necessary? Is it as simple as copying over the kernel file from the DVD? Creating a minimal version might be easier, starting from the smaller footprint cd, but no 64-bit is a non-starter for me.

    I appreciate any and all insights into this.

  10. #10
    Senior Member registered user
    Join Date
    Sep 2006
    Posts
    802
    Quote Originally Posted by dwstarke View Post
    I am one of those who have tried to pare Knoppix down to a minimal size, in order to then construct a customized, modular Knoppix using the ramdisk KNOPPIX 2-9 method. I might suggest, that a minimal Knoppix need only be created once and that anyone who has such a beast made from 7.0.5 and would share it would probably have the undying gratitude of those of us who are struggling with this.

    Along this line, is it possible to include the 64 bit kernel with the cd version in order to boot into 64-bit or are there other components necessary? Is it as simple as copying over the kernel file from the DVD? Creating a minimal version might be easier, starting from the smaller footprint cd, but no 64-bit is a non-starter for me.

    I appreciate any and all insights into this.
    The only really safe way I know about, is debootstrap. Morphing that into a knxbootstrap would be very useful, but personally, I'm not going to try it now. I have found out that it is more fruitful to concentrate on squashfs remasterings and avoid that somewhat artificial 4GB limit. On my DVD-based system, package linux-image-3.6.11-64 is installed - have you tried to install that in a CD-based system? I have had some success running 64 bits in a chrooted debootstrap version.

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


HP Workstation Z640 2x Xeon E5-2623V4 32GB Ram Dual 256GB SSD K420 Linux GA picture

HP Workstation Z640 2x Xeon E5-2623V4 32GB Ram Dual 256GB SSD K420 Linux GA

$234.98



HP Workstation Z640 2x Xeon E5-2623V4 32GB Ram 2x 256GB SSD Quadro 2000 Linux GA picture

HP Workstation Z640 2x Xeon E5-2623V4 32GB Ram 2x 256GB SSD Quadro 2000 Linux GA

$269.99



HP Z420 Workstation Xeon E5-2690 v2 3ghz 10-Cores 64gb  512gb SSD  4TB  Win10 picture

HP Z420 Workstation Xeon E5-2690 v2 3ghz 10-Cores 64gb 512gb SSD 4TB Win10

$239.99



HP Z440 Workstation 18Cores Xeon E5-2699 V3 128GB 1TB SSD 2TB WIFI WIN11 R5-340X picture

HP Z440 Workstation 18Cores Xeon E5-2699 V3 128GB 1TB SSD 2TB WIFI WIN11 R5-340X

$309.99



SR1XP Intel Xeon E5-2680 v3 12 Core 30MB 2.5GHz LGA 2011-3 Grade A Processor picture

SR1XP Intel Xeon E5-2680 v3 12 Core 30MB 2.5GHz LGA 2011-3 Grade A Processor

$3.97



Intel Xeon Gold 6140 SR3AX 2.3GHz 18-Core Processor CPU picture

Intel Xeon Gold 6140 SR3AX 2.3GHz 18-Core Processor CPU

$35.19



INTEL XEON E5-2699V4 2.2 GHz 22-CORE SR2JS CM8066002022506 picture

INTEL XEON E5-2699V4 2.2 GHz 22-CORE SR2JS CM8066002022506

$138.50



Intel Xeon Gold 6138 2.0GHz 27.5MB 20-Core 125W LGA3647 SR3B5 picture

Intel Xeon Gold 6138 2.0GHz 27.5MB 20-Core 125W LGA3647 SR3B5

$49.00



HP Workstation Z420 Xeon V2 3.7GHz, 64Gb PC Desktop - F1L05UT#ABA picture

HP Workstation Z420 Xeon V2 3.7GHz, 64Gb PC Desktop - F1L05UT#ABA

$145.00



HP ProLiant DL380 Gen9 8SFF Server - E5-2698 v3 - 32Cores - 128GB Ram - 1TB HDD picture

HP ProLiant DL380 Gen9 8SFF Server - E5-2698 v3 - 32Cores - 128GB Ram - 1TB HDD

$299.00