|
sherm
sherman


Registered: 10/02/03
Posts: 20,498
Loc: Euthanasia
|
possible to strip debian back to base system?
#4366883 - 07/03/05 04:58 PM (17 years, 8 months ago) |
|
|
Is it possible to strip debian back to the base system using apt or dpkg? to remove all programs and libs back to that point?
When I install debian i just install the base system, then I add what I want from there. Then I get to playing with things, trying to learn how stuff works. Sometimes I trash my system beyond repair, or at least that i have the patience to repair. Curiosity killed the OS maybe I should just install the base on a seperate partition and copy that over when i destroy the other one?
thanks
-------------------- shroomery.
not even once.
    
|
pzilo
Stranger
Registered: 07/04/05
Posts: 2
Last seen: 17 years, 2 months
|
Re: possible to strip debian back to base system? [Re: sherm]
#4370769 - 07/04/05 11:36 PM (17 years, 8 months ago) |
|
|
well if you really mess stuff up, just deleting packages isn't going to help you; You'd most likely want to wipe and reinstall(this is where keeping /home on a separate partition comes in handy, so you don't need to wipe that one) Though, its pretty tough to totally trash a system to this point... What have you done before that made you think the system was trashed?
You could probably easily write a script to dpkg --purge all packages below a certain priority threshold. The easiest way would be, after you reinstall, do dpkg --get-selections > somefile, and save that file. Then to restore, you can just do dpkg --set-selections < somefile.
|
Huehuecoyotl
Fading Slowly


Registered: 06/13/04
Posts: 10,679
Loc: On the Border
|
Re: possible to strip debian back to base system? [Re: sherm]
#4384781 - 07/08/05 06:03 PM (17 years, 8 months ago) |
|
|
You can do it but you might break apt. If you were using Gentoo I would say go for it.
-------------------- "A warrior is a hunter. He calculates everything. That's control. Once his calculations are over, he acts. He lets go. That's abandon. A warrior is not a leaf at the mercy of the wind. No one can push him; no one can make him do things against himself or against his better judgment. A warrior is tuned to survive, and he survives in the best of all possible fashions." ― Carlos Castaneda
|
delta9
Active Ingredient


Registered: 10/28/04
Posts: 5,390
Loc: California
Last seen: 12 years, 4 months
|
Re: possible to strip debian back to base system? [Re: Huehuecoyotl]
#4385436 - 07/08/05 10:14 PM (17 years, 8 months ago) |
|
|
Quote:
Huehuecoyotl said: You can do it but you might break apt. If you were using Gentoo I would say go for it.
Please explain what you mean by "break apt" as well as why "using Gentoo [you] would say go for it"?.. Well, don't really, it would be pointless.
Quote:
sherm said: Is it possible to strip debian back to the base system using apt or dpkg? to remove all programs and libs back to that point?
Sure, you could geting a list of all the packages in base, then remove every package on your box apart from those ones (even with awk or whatever, it's going to be a hassle)... Or you could just reinstall, which:
Quote:
Then I get to playing with things, trying to learn how stuff works. Sometimes I trash my system beyond repair, or at least that i have the patience to repair.
If it's literally trashed beyond repair (uh, what the hell is wrong with it - I mean specifically?) then reinstall is your only option. Were you on woody and failed an upgrade to sarge or something? Or running unstable and pulled some funky package from experimental?
-------------------- delta9
|
sherm
sherman


Registered: 10/02/03
Posts: 20,498
Loc: Euthanasia
|
Re: possible to strip debian back to base system? [Re: delta9]
#4386251 - 07/09/05 07:37 AM (17 years, 8 months ago) |
|
|
im good at using rm or cp at inappropriate moments 
and i like to install alot of different packages to see if i like them. so sometimes i end up with grips of libs and other packages that i dont need when i remove a package, that i don't want.
lately i have been doing this when i install something
#apt-get install *package > install_list.txt
just to keep a list of what gets installed.
the only problem is apt-get wont let me remove all the packages at once. I have to feed it a few at a time. like this
#apt-get remove *package1 *package2 *package3
#apt-get remove *package4 *package5 *package6
-------------------- shroomery.
not even once.
    
|
delta9
Active Ingredient


Registered: 10/28/04
Posts: 5,390
Loc: California
Last seen: 12 years, 4 months
|
Re: possible to strip debian back to base system? [Re: sherm]
#4387313 - 07/09/05 04:25 PM (17 years, 8 months ago) |
|
|
That's where scripting comes in handy.
-------------------- delta9
|
sherm
sherman


Registered: 10/02/03
Posts: 20,498
Loc: Euthanasia
|
Re: possible to strip debian back to base system? [Re: delta9]
#4388086 - 07/09/05 09:31 PM (17 years, 8 months ago) |
|
|
i've been trying to pick up on some of that lately.
-------------------- shroomery.
not even once.
    
|
Huehuecoyotl
Fading Slowly


Registered: 06/13/04
Posts: 10,679
Loc: On the Border
|
Re: possible to strip debian back to base system? [Re: delta9]
#4389515 - 07/10/05 10:48 AM (17 years, 8 months ago) |
|
|
I have broken the debian package manager many times trying similar stuff. Remove one program no prob....strip it down and you cause problems. I did this once and it removed apt even though I did not tell it to. Portage is much more resiliant. For the record I like Debian, but you just have to be more cautious. Gentoo is a bitch to get installed, but it is more robust.
-------------------- "A warrior is a hunter. He calculates everything. That's control. Once his calculations are over, he acts. He lets go. That's abandon. A warrior is not a leaf at the mercy of the wind. No one can push him; no one can make him do things against himself or against his better judgment. A warrior is tuned to survive, and he survives in the best of all possible fashions." ― Carlos Castaneda
|
|