From darren.hennessy at advitech.com.au Mon May 1 07:26:49 2006 From: darren.hennessy at advitech.com.au (darren.hennessy at advitech.com.au) Date: Mon, 1 May 2006 17:26:49 +1000 Subject: [tinysofa-discuss] Removing packages Message-ID: Hi, Is there an easy way to remove all the development packages (from a bash prompt) that have been installed after the installation process is finished? I have a situation where we would like to compile and install a number of packages then remove the compilers etc afterwards to reclaim the space as the system is running on a 2Gb CF card. The 'apt-get remove gcc' command removes some but its a bit messy. thanks, Darren ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Advitech Pty Limited ABN 29 003 433 458 1 Elizabeth Street, Tighes Hill NSW, Newcastle, Australia PO Box 207, Mayfield 2304 NSW, Australia Phone +61 2 49616544 Fax +61 2 49693530 http://www.advitech.com.au ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ NOTICE - This message contains information intended only for the use of the addressee named above. It may also be confidential and/or privileged. If you are not the intended recipient of this message you are hereby notified that you must not disseminate, copy or take any action in reliance on it. If you have received this message in error please notify Advitech Pty Limited immediately via mailto:mail at advitech.com.au. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.tinysofa.org/pipermail/tinysofa-discuss/attachments/20060501/cb0fdd12/attachment.html From andrew at neep.com.au Mon May 1 08:18:09 2006 From: andrew at neep.com.au (Andrew Shugg) Date: Mon, 1 May 2006 16:18:09 +0800 Subject: [tinysofa-discuss] Removing packages In-Reply-To: References: Message-ID: <20060501081809.GC2528@neep.com.au> darren.hennessy at advitech.com.au said: > Hi, > Is there an easy way to remove all the development packages (from a bash > prompt) that have been installed after the installation process is > finished? I have a situation where we would like to compile and install a > number of packages then remove the compilers etc afterwards to reclaim the > space as the system is running on a 2Gb CF card. The 'apt-get remove gcc' > command removes some but its a bit messy. > > thanks, > Darren You could try something drastic like: # rpm -qa|grep -- -devel-|cut -d- -f-2|xargs apt-get -s remove ... which will show you what would happen if you attempted the removal of every *-devel package installed. (There is probably a much more elegant way of doing this, but 'apt-get remove *-devel' isn't it.) It would probably be better to put the output of 'rpm -qa' into a file and look through it to see which *-devel packages have been installed since the gcc package. Then 'apt-get -s remove' that list to check that it's not going to break the system (ie it doesn't remove more packages through dependencies) and if you're happy, take out the '-s' to do it for real. Andrew. -- Andrew Shugg http://www.neep.com.au/ "Just remember, Mr Fawlty, there's always someone worse off than yourself." "Is there? Well I'd like to meet him. I could do with a good laugh." -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.tinysofa.org/pipermail/tinysofa-discuss/attachments/20060501/f162cabb/attachment.bin From morten at nilsen.com Mon May 1 15:05:11 2006 From: morten at nilsen.com (Morten Nilsen) Date: Mon, 01 May 2006 17:05:11 +0200 Subject: [tinysofa-discuss] Removing packages In-Reply-To: <20060501081809.GC2528@neep.com.au> References: <20060501081809.GC2528@neep.com.au> Message-ID: <445623A7.9060106@nilsen.com> Andrew Shugg wrote: > darren.hennessy at advitech.com.au said: >> Is there an easy way to remove all the development packages > You could try something drastic like: > # rpm -qa|grep -- -devel-|cut -d- -f-2|xargs apt-get -s remove on trustix, I usually do rpm -e `rpm -qa *-devel` and then take actions on the dependencies listed (usually by adding |grep -v glibc-devel etc. into the backticks.) your method seems quite convoluted to me.. -- Morten :wq From gda at tinysofa.org Mon May 1 21:19:46 2006 From: gda at tinysofa.org (Gerald Dachs) Date: Mon, 1 May 2006 23:19:46 +0200 Subject: [tinysofa-discuss] Removing packages In-Reply-To: <445623A7.9060106@nilsen.com> References: <20060501081809.GC2528@neep.com.au> <445623A7.9060106@nilsen.com> Message-ID: <20060501231946.96aeb8fc.gda@tinysofa.org> On Mon, 01 May 2006 17:05:11 +0200 Morten Nilsen wrote: > Andrew Shugg wrote: > > darren.hennessy at advitech.com.au said: > >> Is there an easy way to remove all the development packages > > You could try something drastic like: > > # rpm -qa|grep -- -devel-|cut -d- -f-2|xargs apt-get -s remove > > on trustix, I usually do rpm -e `rpm -qa *-devel` and then take actions > on the dependencies listed (usually by adding |grep -v glibc-devel etc. > into the backticks.) your method seems quite convoluted to me.. and I don't remove the packages at all, because I use allways a dedicated build environment. I would never build on the target machine in this case. And if there is no second machine, then use qemu from contrib and make a build environment on the target machine that you can remove with nearly one rm. Gerald From morten at nilsen.com Mon May 1 22:25:57 2006 From: morten at nilsen.com (Morten Nilsen) Date: Tue, 02 May 2006 00:25:57 +0200 Subject: [tinysofa-discuss] Removing packages In-Reply-To: <20060501231946.96aeb8fc.gda@tinysofa.org> References: <20060501081809.GC2528@neep.com.au> <445623A7.9060106@nilsen.com> <20060501231946.96aeb8fc.gda@tinysofa.org> Message-ID: <44568AF5.9010106@nilsen.com> Gerald Dachs wrote: > Morten Nilsen wrote: >> Andrew Shugg wrote: >>> rpm -qa|grep -- -devel-|cut -d- -f-2|xargs apt-get -s remove >> rpm -e `rpm -qa *-devel` > > and I don't remove the packages at all, because I use allways a dedicated build environment. I do have a dedicated build box (now) but I had this desktop cluttered up with -devel packages before I got that set up.. I would just like to point out that it pays off to know your tools, and how to combine them efficiently to get the result you want.. one other command I from time to time use: rpm -q --whatprovides `rpm -q --requires something` | sort -u anyhoo.. I'll go back to lurking now.. it's not like I actually use this distro anyway :P -- Cheers, Morten :wq From gda at tinysofa.org Mon May 1 21:40:35 2006 From: gda at tinysofa.org (Gerald Dachs) Date: Mon, 1 May 2006 23:40:35 +0200 Subject: [tinysofa-discuss] Removing packages In-Reply-To: <44568AF5.9010106@nilsen.com> References: <20060501081809.GC2528@neep.com.au> <445623A7.9060106@nilsen.com> <20060501231946.96aeb8fc.gda@tinysofa.org> <44568AF5.9010106@nilsen.com> Message-ID: <20060501234035.d6bd0079.gda@tinysofa.org> > I do have a dedicated build box (now) but I had this desktop cluttered > up with -devel packages before I got that set up.. I meant the first poster > I would just like to point out that it pays off to know your tools, and > how to combine them efficiently to get the result you want.. > one other command I from time to time use: This is always true > anyhoo.. I'll go back to lurking now.. it's not like I actually use this > distro anyway :P I know Morten, I only don't understand why. Trustix surely has seen better days than the last. Gerald From morten at nilsen.com Mon May 1 22:55:01 2006 From: morten at nilsen.com (Morten Nilsen) Date: Tue, 02 May 2006 00:55:01 +0200 Subject: [tinysofa-discuss] Removing packages In-Reply-To: <20060501234035.d6bd0079.gda@tinysofa.org> References: <20060501081809.GC2528@neep.com.au> <445623A7.9060106@nilsen.com> <20060501231946.96aeb8fc.gda@tinysofa.org> <44568AF5.9010106@nilsen.com> <20060501234035.d6bd0079.gda@tinysofa.org> Message-ID: <445691C5.1020300@nilsen.com> Gerald Dachs wrote: >> anyhoo.. I'll go back to lurking now.. it's not like I actually use this >> distro anyway :P > > I know Morten, I only don't understand why. Trustix surely has seen better days than the last. I just like the environment.. back when tinysofa was new, I gave it a spin, but I just didn't feel comfortable.. you can dig up my postings in ye olde archive if you care to see my original gripes (and maybe even discuss them) -- Cheers, Morten :wq From darren.hennessy at advitech.com.au Mon May 1 22:50:08 2006 From: darren.hennessy at advitech.com.au (darren.hennessy at advitech.com.au) Date: Tue, 2 May 2006 08:50:08 +1000 Subject: [tinysofa-discuss] Removing packages In-Reply-To: <445623A7.9060106@nilsen.com> Message-ID: thanks for the responses guys. Morten Nilsen Sent by: tinysofa-discuss-bounces at tinysofa.org 02/05/2006 01:05 AM Please respond to tinysofa-discuss at tinysofa.org To tinysofa-discuss at tinysofa.org cc Subject Re: [tinysofa-discuss] Removing packages Andrew Shugg wrote: > darren.hennessy at advitech.com.au said: >> Is there an easy way to remove all the development packages > You could try something drastic like: > # rpm -qa|grep -- -devel-|cut -d- -f-2|xargs apt-get -s remove on trustix, I usually do rpm -e `rpm -qa *-devel` and then take actions on the dependencies listed (usually by adding |grep -v glibc-devel etc. into the backticks.) your method seems quite convoluted to me.. -- Morten :wq _______________________________________________ tinysofa-discuss mailing list tinysofa-discuss at tinysofa.org http://lists.tinysofa.org/mailman/listinfo/tinysofa-discuss ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Advitech Pty Limited ABN 29 003 433 458 1 Elizabeth Street, Tighes Hill NSW, Newcastle, Australia PO Box 207, Mayfield 2304 NSW, Australia Phone +61 2 49616544 Fax +61 2 49693530 http://www.advitech.com.au ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ NOTICE - This message contains information intended only for the use of the addressee named above. It may also be confidential and/or privileged. If you are not the intended recipient of this message you are hereby notified that you must not disseminate, copy or take any action in reliance on it. If you have received this message in error please notify Advitech Pty Limited immediately via mailto:mail at advitech.com.au. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.tinysofa.org/pipermail/tinysofa-discuss/attachments/20060502/3c990442/attachment.html From gda at tinysofa.org Tue May 2 06:16:02 2006 From: gda at tinysofa.org (Gerald Dachs) Date: Tue, 2 May 2006 08:16:02 +0200 (CEST) Subject: [tinysofa-discuss] Removing packages In-Reply-To: <445691C5.1020300@nilsen.com> References: <20060501081809.GC2528@neep.com.au> <445623A7.9060106@nilsen.com> <20060501231946.96aeb8fc.gda@tinysofa.org> <44568AF5.9010106@nilsen.com> <20060501234035.d6bd0079.gda@tinysofa.org> <445691C5.1020300@nilsen.com> Message-ID: <43556.139.1.44.13.1146550562.squirrel@sohoserver.homelinux.net> > Gerald Dachs wrote: >>> anyhoo.. I'll go back to lurking now.. it's not like I actually use >>> this >>> distro anyway :P >> >> I know Morten, I only don't understand why. Trustix surely has seen >> better days than the last. > > I just like the environment.. back when tinysofa was new, I gave it a > spin, but I just didn't feel comfortable.. you can dig up my postings in > ye olde archive if you care to see my original gripes (and maybe even > discuss them) I found a mail from you where you had some complains to tinysofa enterprise server. Can't discuss about it, because classic server is my baby. Gerald From mikael at tinysofa.org Tue May 2 06:22:13 2006 From: mikael at tinysofa.org (Mikael Bak) Date: Tue, 2 May 2006 08:22:13 +0200 Subject: [tinysofa-discuss] Removing packages In-Reply-To: <445691C5.1020300@nilsen.com> References: <20060501234035.d6bd0079.gda@tinysofa.org> <445691C5.1020300@nilsen.com> Message-ID: <200605020822.24058.mikael@tinysofa.org> On Tuesday 02 May 2006 00:55, Morten Nilsen wrote: > > I just like the environment.. back when tinysofa was new, I gave it a > spin, but I just didn't feel comfortable.. you can dig up my postings in > ye olde archive if you care to see my original gripes (and maybe even > discuss them) Hi Morten, Tinysofa Enterprise and Classic are quite different. Classic is IMO more like Trustix. When I switched from Trustix to tinysofa classic I felt instantly at home. Cheers, Mikael -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.tinysofa.org/pipermail/tinysofa-discuss/attachments/20060502/2ba9bd1c/attachment.bin