You are not logged in.

#1 2015-09-24 00:28:52

entropy_poster
Member
Registered: 2015-09-24
Posts: 2

Replacing Bash and Less

Hello!

I want to install a very small and customized system. Therefore I don't want to install unnecessary packages like some packages in the base meta package. So my two questions are:

Is it possible to replace BASH with ZSH?
Is it possible to replace LESS and MORE with MOST?

I would prefere a clean solution without tricking pacman, but I dont see how to get the dependencies fixed.

I hope someone has had the same idea and likes to share some thoughts about this.

Offline

#2 2015-09-24 00:37:35

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,333
Website

Re: Replacing Bash and Less

Even "tricking" pacman wouldn't do you any good.  Less you could probably do with out, but many utilities require bash.  It is easy to use zsh as a default shell, but not remove bash entirely without a lot of work.

By the time you do half of the required work you wouldn't really be using archlinux.  This leads to my main question: why do you think archlinux is a good system on which to do this? (not to mention what makes you think zsh is *small*)

Look at busybox-based small distros like DSL, puppy, or slitaz.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2015-09-24 00:39:20

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: Replacing Bash and Less

Installing zsh and most? No problem.
Replacing bash on the other hand, nope.
You can always try removing unnecessary packages afterwards, but bash or util-linux are certainly going to stay.


1000

Offline

#4 2015-09-24 01:11:53

entropy_poster
Member
Registered: 2015-09-24
Posts: 2

Re: Replacing Bash and Less

Thank you for your reply!

I was just curious how to achive this.

@Trilby:
In the past I always used a minimal installation of Ubuntu Linux (~400 MB) and added most of the software from GIT repositories. Ubuntu is nice in many ways but some packages are quiet outdated and even more packages don't even exist. To avoid this I moved to Arch Linux.
Thank you for your suggestions but looking at them makes me think I might have to go down the manual GIT way again.
Furthermore I know ZSH isn't small at all but it is my favorite and hey I like to live healthy but not without nutella wink

Offline

#5 2015-09-24 01:28:18

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,420
Website

Re: Replacing Bash and Less

entropy_poster wrote:

Thank you for your suggestions but looking at them makes me think I might have to go down the manual GIT way again.

These "ways" are completely unsupported, and after things break you get to keep both pieces.

P.S. Many arch utilties rely on Bash, and Zsh can't fully emulate it. Just one example. But hey, 5 MB saved, right. wink

Last edited by Alad (2015-09-24 01:31:39)


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#6 2015-09-24 01:34:17

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,333
Website

Re: Replacing Bash and Less

entropy_poster wrote:

In the past I always used a minimal installation of Ubuntu Linux (~400 MB)

Have you installed arch yet?  A default base install is smaller than that.

I just added up installed size of all my base group packages to get 265MiB, some more would be generated after installation, but not much - also I have a few base packages that I've removed like fs utilities for filesystems I don't use, one could probably trim even more than I have if small size was the goal.  Archlinux is not designed to be small in the way slitaz, DSL, and some others are - but 400MB is plenty - one doesn't need to be small to fit in that.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#7 2015-09-24 01:36:26

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,508
Website

Re: Replacing Bash and Less

Pacman needs bash for its install scriptlets.

Offline

#8 2015-09-24 01:45:07

Knute
Member
From: Minot, ND
Registered: 2009-03-17
Posts: 604

Re: Replacing Bash and Less

Alad wrote:

These "ways" are completely unsupported, and after things break you get to keep both pieces.

"both pieces"?!?

What makes you think that there will only be two?  Or is it that you can only find 2?  lol


Knute

Offline

#9 2015-09-24 08:26:03

olive
Member
From: Belgium
Registered: 2008-06-22
Posts: 1,490

Re: Replacing Bash and Less

Could we know why you want to do this? If you want to make a very small embedded system; you won't succeed this way. Archlinux depends on the whole base group. While you can probably miss a few of the base packages, you won't succeed to have such a minimal system by just removing packages. Probably, you should build the system yourself using busybox. It shouldn't be that hard. Actually, a kernel and busybox already gives you a functional minimal system. Just compile the extra tools you want.

Last edited by olive (2015-09-24 08:28:03)

Offline

#10 2015-09-24 08:29:19

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: Replacing Bash and Less

entropy_poster wrote:

Is it possible to replace LESS and MORE with MOST?

Why?

"less" is actively developed.

Offline

#11 2015-09-25 12:42:08

exidux
Member
From: Your screen.
Registered: 2014-09-19
Posts: 59

Re: Replacing Bash and Less

If for some reason you cant do what you want using Arch, then take a look at Tiny Core.
In 80mb it packs a very functional  graphical system, and in roughly 30mb it packs its base system.
It needs some getting used to and reading about how it works, but its nice.

Offline

#12 2015-09-28 01:10:03

severach
Member
Registered: 2015-05-23
Posts: 198

Re: Replacing Bash and Less

Alpine Linux is another choice for small installs.

Offline

Board footer

Powered by FluxBB