Re: How to uninstall a kernel and *all* of its dependencies?
2009/10/23 Klistvud quotati...@aliceadsl.fr: Howdie, fellow Debianites! My daily question for today: this morning, another kernel update was proposed to me by the Gnome update applet. As I already have three kernels on my Lenny system (the 2.6.26-1-amd64 and 2.6.26-2-amd64, as well as a a backported 2.6.30- bpo.2-amd64), my grub startup list is beginning to look a bit clobbered. How can I go uninstalling some of the unneeded kernels (particularly the backports one which didn't meet my needs in the end) and make sure that *everything* that got installed by their respective packages -- or built against the particular kernel, such as my wireless and graphics modules -- gets uninstalled as well? What is the Debian way of finding which packages will be obsoleted by uninstalling a particular kernel, so that I can prevent cruft from building up? And ... ehm ... yes, well, I admit, I'm using Synaptics ... TIA -- Regards, Klistvud Certifiable Loonix User #481801 the easiest way is to in synaptics just search for 'linux' and remove the kernels you not need, ie linux images and linux headers etc for the versions you want. -- [WWW] http://quail.southernvaleslug.org/ The significant problems we face cannot be solved at the same level of thinking we were at when we created them - Albert Einstein -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: How to uninstall a kernel and *all* of its dependencies?
Dne, 23. 10. 2009 10:06:48 je Dale napisal(a): the easiest way is to in synaptics just search for 'linux' and remove the kernels you not need, ie linux images and linux headers etc for the versions you want. Thanx. Will that take care automagically for the related kernel modules and the like? I mean, I won't have to manually remove subdirs such as, say, 'lib/modules/2.6.30-bpo.2-amd64/misc/fglrx.ko'? Will it also clean my /boot/grub/menu.lst of the entries no longer needed? -- Regards, Klistvud Certifiable Loonix User #481801 -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: How to uninstall a kernel and *all* of its dependencies?
Klistvud wrote: Dne, 23. 10. 2009 10:06:48 je Dale napisal(a): the easiest way is to in synaptics just search for 'linux' and remove the kernels you not need, ie linux images and linux headers etc for the versions you want. Thanx. Will that take care automagically for the related kernel modules and the like? I mean, I won't have to manually remove subdirs such as, say, 'lib/modules/2.6.30-bpo.2-amd64/misc/fglrx.ko'? Will it also clean my /boot/grub/menu.lst of the entries no longer needed? Why don't you just give it a try and follow up with any questions or problems you face? -- Johannes Three nations have not officially adopted the International System of Units as their primary or sole system of measurement: Burma, Liberia, and the United States. http://en.wikipedia.org/wiki/Si_units -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: How to uninstall a kernel and *all* of its dependencies?
Dne, 23. 10. 2009 12:49:12 je Johannes Wiedersich napisal(a): Why don't you just give it a try and follow up with any questions or problems you face? -- Johannes Because I'm not yet familiar enough with Debian (or GNU/Linux, for that matter) to know where to look for leftovers once the kernel is uninstalled; I'm able to track down the location of Grub's menu.lst and of the kernel modules, but that's about it. I'm just trying to get some input from more experienced users before 'giving it a try'; eventually, I *will* do that, and follow with any questions or problems I may face. -- Regards, Klistvud Certifiable Loonix User #481801 -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: How to uninstall a kernel and *all* of its dependencies?
23.10.2009 14:23, Klistvud kirjoitti: Dne, 23. 10. 2009 12:49:12 je Johannes Wiedersich napisal(a): Why don't you just give it a try and follow up with any questions or problems you face? -- Johannes Because I'm not yet familiar enough with Debian (or GNU/Linux, for that matter) to know where to look for leftovers once the kernel is uninstalled; I'm able to track down the location of Grub's menu.lst and of the kernel modules, but that's about it. I'm just trying to get some input from more experienced users before 'giving it a try'; eventually, I *will* do that, and follow with any questions or problems I may face. I don't know if this is the correct way, but I just remove all files in /boot that resemble the kernel version, plus /lib/modules/kernel-version plus edit the /boot/grub/menu.lst by hand and remove the lines for the kernel. Now that I think about it, maybe I should to it via package management... -- http://www.iki.fi/jarif/ You're currently going through a difficult transition period called Life. signature.asc Description: OpenPGP digital signature
Re: How to uninstall a kernel and *all* of its dependencies?
AFAIK aptitude will not allow you to leave youtself without any kernel easily :) You can see which kernel packages are installed on your machine using dpkg -l 'linux-image*' On Fri, Oct 23, 2009 at 7:02 PM, Jari Fredriksson ja...@iki.fi wrote: 23.10.2009 14:54, Alexey Salmin kirjoitti: On Fri, Oct 23, 2009 at 6:35 PM, Jari Fredriksson ja...@iki.fi wrote: 23.10.2009 14:23, Klistvud kirjoitti: Dne, 23. 10. 2009 12:49:12 je Johannes Wiedersich napisal(a): Why don't you just give it a try and follow up with any questions or problems you face? -- Johannes Because I'm not yet familiar enough with Debian (or GNU/Linux, for that matter) to know where to look for leftovers once the kernel is uninstalled; I'm able to track down the location of Grub's menu.lst and of the kernel modules, but that's about it. I'm just trying to get some input from more experienced users before 'giving it a try'; eventually, I *will* do that, and follow with any questions or problems I may face. I don't know if this is the correct way, but I just remove all files in /boot that resemble the kernel version, plus /lib/modules/kernel-version plus edit the /boot/grub/menu.lst by hand and remove the lines for the kernel. Now that I think about it, maybe I should to it via package management... -- http://www.iki.fi/jarif/ You're currently going through a difficult transition period called Life. That's definitely not a right way. Generally, modifying system files manually is usually a bad idea. Almost every file in your system (I'm talking about /usr /lib /boot etc, not /home or /var/log) belongs to some package. If you want to remove it - it's better to remove a whole package. When the package is removed you can delete it's reverse-dependencies using apt-get auto-remove (or smth like that in another package manager) - but be careful here, check the packages list which are going to be removed. There accidentally might be some important things, you can tell that you still need with explicit install command. Please not that removing the package leaves it's configuration files. If you want to remove them as well you should purge the package. That was a brief introduction in a concept of software packages :) Yup, I know how packages are managed, and usually I do that. aptitude remove or purge.. But somehow I have not done that with kernel packages. I do not want to command aptitude purge kernel ;D Kernels are different, as there are various versions, and I just never want to live without *a* kernel. -- http://www.iki.fi/jarif/ You're currently going through a difficult transition period called Life. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: How to uninstall a kernel and *all* of its dependencies?
23.10.2009 15:08, Alexey Salmin kirjoitti: AFAIK aptitude will not allow you to leave youtself without any kernel easily :) You can see which kernel packages are installed on your machine using dpkg -l 'linux-image*' Thanks! I'll use that for now. -- http://www.iki.fi/jarif/ You will engage in a profitable business activity. signature.asc Description: OpenPGP digital signature
Re: How to uninstall a kernel and *all* of its dependencies?
Klistvud wrote: Dne, 23. 10. 2009 12:49:12 je Johannes Wiedersich napisal(a): Why don't you just give it a try and follow up with any questions or problems you face? Because I'm not yet familiar enough with Debian (or GNU/Linux, for that matter) to know where to look for leftovers once the kernel is uninstalled; I'm able to track down the location of Grub's menu.lst and of the kernel modules, but that's about it. Debian packages are generally designed to remove all files that were installed when the package is removed. There is a difference between 'aptitude remove package' and 'aptitude purge package', though. The first removes all files of the package, except configuration files, the second removes all files of the package including configuration files. The kernel is somewhat special in that the installation also touches the configuration belonging to grub, ie. /boot/grub/menu.lst Normally, removing of the kernel package with aptitude will automagically update that file for you (unless you have changed your configuration from the default values). As far as files are concerned that belong to the kernel, but were created by you (or a script you ran), I don't know. I guess it would be your responsibility to take care of files that you have created, though ;-( I'm just trying to get some input from more experienced users before 'giving it a try'; eventually, I *will* do that, and follow with any questions or problems I may face. IMHE Debian's package system is rather robust and it is usually a severe fault of the user, if something goes horribly wrong (like ignoring all warnings and still continuing) PLUS that likelihood is rather small. I was just trying to point that out. NB: You should have some good backups of your system, so in the unlikely case that something goes wrong you could easily restore your system to the previous state (or investigate the difference to the previous state). -- Johannes Three nations have not officially adopted the International System of Units as their primary or sole system of measurement: Burma, Liberia, and the United States. http://en.wikipedia.org/wiki/Si_units -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: How to uninstall a kernel and *all* of its dependencies?
On Fri, 23 Oct 2009 10:29:31 +0200 Klistvud quotati...@aliceadsl.fr wrote: Hello Klistvud, say, 'lib/modules/2.6.30-bpo.2-amd64/misc/fglrx.ko'? Will it also clean my /boot/grub/menu.lst of the entries no longer needed? That'll all be taken care of for you. After all, it wouldn't be much of a package manager if you still had to do all the work yourself, would it? Further, if you delete system files/directories manually you _may_ end up breaking something. -- Regards _ / ) The blindingly obvious is / _)radnever immediately apparent Going round on the Circle Line trying to find a way out Titanic (My Over) Reaction - 999 signature.asc Description: PGP signature
Re: How to uninstall a kernel and *all* of its dependencies?
Klistvud wrote: Howdie, fellow Debianites! My daily question for today: this morning, another kernel update was proposed to me by the Gnome update applet. As I already have three kernels on my Lenny system (the 2.6.26-1-amd64 and 2.6.26-2-amd64, as well as a a backported 2.6.30- bpo.2-amd64), my grub startup list is beginning to look a bit clobbered. How can I go uninstalling some of the unneeded kernels (particularly the backports one which didn't meet my needs in the end) and make sure that *everything* that got installed by their respective packages -- or built against the particular kernel, such as my wireless and graphics modules -- gets uninstalled as well? What is the Debian way of finding which packages will be obsoleted by uninstalling a particular kernel, so that I can prevent cruft from building up? And ... ehm ... yes, well, I admit, I'm using Synaptics ... As a new user of Debian you would be well advised to install the debian-reference package. Most, if not all, of your questions are addressed in that package. I find it useful after 15+ years of running Debian. Of course, YMMV Wayne -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: How to uninstall a kernel and *all* of its dependencies?
On Fri October 23 2009, Wayne wrote: As a new user of Debian you would be well advised to install the debian-reference package. Most, if not all, of your questions are addressed in that package. I find it useful after 15+ years of running Debian. how would one access this package? I seem to have it already installed.. I always have used google.com/linux and did a debian +question search. -- Paul Cartwright Registered Linux user # 367800 Registered Ubuntu User #12459 -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: How to uninstall a kernel and *all* of its dependencies?
On Fri, Oct 23, 2009 at 09:54:32AM -0400, Paul Cartwright wrote: On Fri October 23 2009, Wayne wrote: As a new user of Debian you would be well advised to install the debian-reference package. Most, if not all, of your questions are addressed in that package. I find it useful after 15+ years of running Debian. how would one access this package? I seem to have it already installed.. I always have used google.com/linux and did a debian +question search. dpkg -L 'package' Show the list of files and location of them. With debian-reference(for english language): dpkg -L debian-reference-en -- Porqué loitar e matar, se podes amar e sonhar /\ \ / CAMPANHA DA FITA ASCII - CONTRA MAIL HTML X ASCII RIBBON CAMPAIGN - AGAINST HTML MAIL / \ -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: How to uninstall a kernel and *all* of its dependencies?
23.10.2009 17:03, Pedro Insua kirjoitti: dpkg -L debian-reference-en I have not this package installed, so says that command. What good does it bring? Documents? I never read documents from my disk, I read them from internet. I have used linuces from 1994, but Debian only maybe 2 years. Should I install it? -- http://www.iki.fi/jarif/ You may my glories and my state dispose, But not my griefs; still am I king of those. -- William Shakespeare, Richard II signature.asc Description: OpenPGP digital signature
Re: How to uninstall a kernel and *all* of its dependencies?
On Fri, Oct 23, 2009 at 05:15:14PM +0300, Jari Fredriksson wrote: 23.10.2009 17:03, Pedro Insua kirjoitti: dpkg -L debian-reference-en I have not this package installed, so says that command. What good does it bring? Documents? I never read documents from my disk, I read them from internet. 'debian-reference', is a 'metapackage', install 'all' translations of 'debian-reference'.. English, Portuguese, German, Spanish.. etc But if you only want your language, by example English, you must install 'debian-reference-en'. If you try 'apt-cache search debian-reference', you can see all the packages translations. Imagine, you want english translation, the steps are: apt-get update (the last version) apt-get install debian-reference-en (install the package) now, you can use 'dpkg -l package_name' to see all files and locations. In Debian, all the documentation is in '/usr/share/doc/'. For 'debian-reference-en' would be in: '/usr/share/doc/debian-reference-en/' I have used linuces from 1994, but Debian only maybe 2 years. Should I install it? If you want the Debian reference guide, yes -- Porqué loitar e matar, se podes amar e sonhar /\ \ / CAMPANHA DA FITA ASCII - CONTRA MAIL HTML X ASCII RIBBON CAMPAIGN - AGAINST HTML MAIL / \ -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: How to uninstall a kernel and *all* of its dependencies?
How can I go uninstalling some of the unneeded kernels (particularly the backports one which didn't meet my needs in the end) and make sure that *everything* that got installed by their respective packages -- or built against the particular kernel, such as my wireless and graphics modules -- gets uninstalled as well? What is the Debian way of Good question. I wish I could tell you just dpkg -l linux-image\* and aptitude purge the kernels you don't like, but indeed in my experience this tends to leave some cruft around (e.g. linux-headers, maybe some modules compiled with module-assistant, ...). What I do is:\ - dpkg -l linux-image\* to see which kernels I have installed and I want to remove. - ls /boot to have a second opinion - aptitude purge linux-image-vers - dpkg -l '*vers*' | grep '^i' to see the packages whose name includes that kernel version and are still installed. E.g. dpkg -l '*2.6.26-1* | grep '^i' - aptitude purge them. Before purging them, you may think a bit about it and if you think they really should have been removed automatically, then use `reportbug' accordingly. Stefan -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: How to uninstall a kernel and *all* of its dependencies?
Paul Cartwright wrote: On Fri October 23 2009, Wayne wrote: As a new user of Debian you would be well advised to install the debian-reference package. Most, if not all, of your questions are addressed in that package. I find it useful after 15+ years of running Debian. how would one access this package? I seem to have it already installed.. I always have used google.com/linux and did a debian +question search. There are a number of ways. If you are have apache or another server installed, and if you have the dwww package installed, you just type in the package name and dwww will find all the documentation for that package that is on your system. Some packages may not have a dwww link i them. Maybe a note to the maintainer would get them to include the linw for dwww. (hint) If you don't/can't do the above then hopefully you have the locate | slocate | mlocate package installed. In that case you do locate debian-reference and look for either the text or html version. I view the HTML version using the DWWW interface in Iceweasel. Or, for those that need it 'now' /usr/share/doc/debian-reference-common/html/index.en.html Wayne -- Give a man a fish, feed him for a day Teach a man to fish, feed him for life -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: How to uninstall a kernel and *all* of its dependencies?
Paul Cartwright wrote: On Fri October 23 2009, Wayne wrote: As a new user of Debian you would be well advised to install the debian-reference package. Most, if not all, of your questions are addressed in that package. I find it useful after 15+ years of running Debian. how would one access this package? I seem to have it already installed.. I always have used google.com/linux and did a debian +question search. There are a number of ways. If you are have apache or another server installed, and if you have the dwww package installed, you just type in the package name and dwww will find all the documentation for that package that is on your system. Some packages may not have a dwww link in them. Maybe a note to the maintainer would get them to include the link for dwww. (hint) If you don't/can't do the above then hopefully you have the locate | slocate | mlocate package installed (and configured). In that case you do locate debian-reference and look for either the text or html version. I view the HTML version using the DWWW interface in Iceweasel. Or, for those that need it 'now' /usr/share/doc/debian-reference-common/html/index.en.html or /usr/share/doc/debian-reference-common/html/debian-reference.en.txt.gz Wayne -- Give a man a fish, feed him for a day Teach a man to fish, feed him for life -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: How to uninstall a kernel and *all* of its dependencies?
On 20091023_171514, Jari Fredriksson wrote: 23.10.2009 17:03, Pedro Insua kirjoitti: dpkg -L debian-reference-en I have not this package installed, so says that command. What good does it bring? Documents? I never read documents from my disk, I read them from internet. I have used linuces from 1994, but Debian only maybe 2 years. Should I install it? I can think of two good (IMHO) reasons for installing debian documents: 1) the documents will be available to you when you are attempting to debug a problem that is keeping you from accessing the internet. 2) Google gives you a lot of hits that are really badly outdated information. Of course all documentation is somewhat outdated, but documentation that is delivered as the latest version of a debian package, is maybe less outdated than most. But, as always, YMMV -- Paul E Condon pecon...@mesanetworks.net -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: How to uninstall a kernel and *all* of its dependencies?
On Fri October 23 2009, Jari Fredriksson wrote: I have not this package installed, so says that command. What good does it bring? Documents? I never read documents from my disk, I read them from internet. once installed, I found you bring up a browser, and go to this web page: /usr/share/doc/debian-reference-common/html/debian-reference.en.html like this, URL: file:///usr/share/doc/debian-reference-common/html/debian-reference.en.html brings up the index. Nice! if you don't have it on your system, just do: aptitude install debian-reference-en ( or your language) -- Paul Cartwright Registered Linux user # 367800 Registered Ubuntu User #12459 -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: How to uninstall a kernel and *all* of its dependencies?
23.10.2009 18:03, Paul E Condon kirjoitti: On 20091023_171514, Jari Fredriksson wrote: 23.10.2009 17:03, Pedro Insua kirjoitti: dpkg -L debian-reference-en I have not this package installed, so says that command. What good does it bring? Documents? I never read documents from my disk, I read them from internet. I have used linuces from 1994, but Debian only maybe 2 years. Should I install it? I can think of two good (IMHO) reasons for installing debian documents: 1) the documents will be available to you when you are attempting to debug a problem that is keeping you from accessing the internet. 2) Google gives you a lot of hits that are really badly outdated information. Of course all documentation is somewhat outdated, but documentation that is delivered as the latest version of a debian package, is maybe less outdated than most. But, as always, YMMV Yes, mileage might vary. I have a backup connection in my router if my ADSL fails, and if that also fails, I have a backup backup connection in my Windows workstation using cellphone 3G. I have not deleted any documentition from my Debian server yet, but I do not know what might have creaped to there, and how to remove it properly. Many packages to include documentation, and some kind of 'removealldocs' command would be cool for me ;) -- http://www.iki.fi/jarif/ You may my glories and my state dispose, But not my griefs; still am I king of those. -- William Shakespeare, Richard II signature.asc Description: OpenPGP digital signature