LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxAnswers Discussion
User Name
Password
LinuxAnswers Discussion This forum is to discuss articles posted to LinuxAnswers.

Notices


Reply
  Search this Thread
Old 02-26-2015, 04:48 PM   #1
100101101
LQ Newbie
 
Registered: Sep 2014
Posts: 7

Rep: Reputation: Disabled
How to remove Bash under Debian.


A new la entry has been added:

How to remove Bash under Debian.

Quote:
Some people were wondering how to say goodbye to bash.
Personal reasons vary from security risks to bloat, or "Just because I can, and I want too."
Only if you are aware of the risks, have decided it is your OS/machine/time anyway, and are hellbent on this action should you continue.
 
Old 02-26-2015, 04:54 PM   #2
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_12{.0|.1}
Posts: 5,268
Blog Entries: 11

Rep: Reputation: 3247Reputation: 3247Reputation: 3247Reputation: 3247Reputation: 3247Reputation: 3247Reputation: 3247Reputation: 3247Reputation: 3247Reputation: 3247Reputation: 3247
Pardon my asking, but this is helpful how, and to who?

Quote:
WARNING: some programs, packages, features, and who knows what else will be broken by this action.
I do not mean to be impolite, but please reconsider this and do not fill LQ with harmful, pointless and useless "how-to's".

How to bork your system, click here!

How to remove all useful programs, ignore warnings and override safeties, click here!

They serve no purpose.

Last edited by astrogeek; 02-26-2015 at 04:57 PM.
 
Old 02-26-2015, 05:01 PM   #3
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: AntiX 17
Posts: 5,887
Blog Entries: 21

Rep: Reputation: 2945Reputation: 2945Reputation: 2945Reputation: 2945Reputation: 2945Reputation: 2945Reputation: 2945Reputation: 2945Reputation: 2945Reputation: 2945Reputation: 2945
I see.

http://vignette1.wikia.nocookie.net/...ricityTest.jpg
 
1 members found this post helpful.
Old 02-26-2015, 05:29 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,414
Blog Entries: 55

Rep: Reputation: 3589Reputation: 3589Reputation: 3589Reputation: 3589Reputation: 3589Reputation: 3589Reputation: 3589Reputation: 3589Reputation: 3589Reputation: 3589Reputation: 3589
Quote:
Originally Posted by 100101101 View Post
Info: I operate as root
I dub thee... Darth Facepalm
 
Old 02-26-2015, 06:35 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 19,354

Rep: Reputation: 2979Reputation: 2979Reputation: 2979Reputation: 2979Reputation: 2979Reputation: 2979Reputation: 2979Reputation: 2979Reputation: 2979Reputation: 2979Reputation: 2979
I always like these posts.

The Be Operating System was build up from ground up without a shell. Linux can't seem and maybe doesn't really need to get along without a shell.
 
Old 02-26-2015, 06:47 PM   #6
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 9,250

Rep: Reputation: 4073Reputation: 4073Reputation: 4073Reputation: 4073Reputation: 4073Reputation: 4073Reputation: 4073Reputation: 4073Reputation: 4073Reputation: 4073Reputation: 4073
I just read your howto, and it will probably last until the next time you install or upgrade anything with apt-get.

It's tremendously likely that it will leave a lot of stuff in a nonworking state too.

Quote:
Only if you are aware of the risks
How are you going to be aware of the risks if you don't even look at the list of files that you're changing?

Quote:
Originally Posted by jefro View Post
The Be Operating System was build up from ground up without a shell. Linux can't seem and maybe doesn't really need to get along without a shell.
The howto is intended to replace bash with dash.

Last edited by dugan; 02-26-2015 at 08:53 PM.
 
Old 02-27-2015, 12:45 AM   #7
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Debian already has changed from bash to dash as much as possible.

Ubuntu follows debian.

I think it's a matter of distribution makers. Casual users must not attempt. Else there is chance of not functioning OS.
 
Old 03-04-2015, 02:52 PM   #8
dunne
Member
 
Registered: May 2014
Distribution: OpenBSD
Posts: 67

Rep: Reputation: 36


I sym-linked /bin/sh to /bin/ksh (actually pdksh) years ago. The only thing that broke was ldd, which was easily fixed:

Code:
head -1 /usr/bin/ldd
#! /bin/bash
So it seems that Slackware (or slackware 11.0, at least) can live without bash -- ldd is useful but hardly essential. There are a few other scripts around which explicitly require bash i.e. they have a #!/bin/bash line, but nothing important.

 
Old 03-04-2015, 03:07 PM   #9
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 9,250

Rep: Reputation: 4073Reputation: 4073Reputation: 4073Reputation: 4073Reputation: 4073Reputation: 4073Reputation: 4073Reputation: 4073Reputation: 4073Reputation: 4073Reputation: 4073
Quote:
Originally Posted by dunne View Post
So it seems that Slackware (or slackware 11.0, at least) can live without bash -- ldd is useful but hardly essential. There are a few other scripts around which explicitly require bash i.e. they have a #!/bin/bash line, but nothing important.
You might want to check out this discussion:

Bashism in /etc/rc.d/rc.S
 
Old 03-04-2015, 03:59 PM   #10
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,455

Rep: Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601
well there is csh and ksh

but almost every "*.sh" script is pointing to "#!/bin/bash " or "#!/bin/sh "

have fun
 
  


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
how to remove old bash cjashu Ubuntu 3 10-03-2014 04:59 PM
how to remove new line in bash using echo packets Programming 9 11-24-2009 10:00 PM
bash : remove replicator words?, how? Guru Mind Programming 13 05-18-2006 01:24 AM
[bash / sed] remove all data between < > Ljohan Programming 4 03-15-2006 06:20 AM
Using sed in bash to remove whitespace jimieee Programming 3 01-28-2004 11:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxAnswers Discussion

All times are GMT -5. The time now is 10:39 PM.

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