Skip to content
← Back to Community
Install And Run sudo
Profile icon
damiascripting

Hey. Does Anyone Know How To Install Sudo On The Bash Terminal? I've Tried Things Such As apt install sudo And yum install sudo But Neither Worked. So Does Anyone Know How?

Answered by Coder100 [earned 5 cycles]
View Answer
Voters
Profile icon
WindowsRefundDay
Profile icon
EniolaAdenekan
Profile icon
gamoroso75
Profile icon
watashiwahisoka
Profile icon
LiveShowHD
Profile icon
irobot20001
Profile icon
VCGamersAri
Profile icon
traEx
Profile icon
liilliilliillll
Profile icon
GenePark3
Comments
hotnewtop
Profile icon
Coder100

Please Refrain From Talking Like This!

Anyways, you don't have root access to the shell, so you can't install things globally, so that means sudo doesn't work. Don't worry, you can still use it!

install-pkg my-thing

is the same as

sudo apt-get install my-thing
Profile icon
kaushikkalesh

@Coder100 what is install-pkg?

Profile icon
RashidLadj

@Coder100 why i can't install clang-12 ??

Profile icon
Coder100
Profile icon
peakych

its not working method @Coder100

Profile icon
ShadowCatXD5

this is fake it says command not found
@Coder100

Profile icon
Coder100

lol there was an update (nix specifically) this is an old post @Golden0mudkip

Profile icon
Mixxer

@Golden0mudkip
it's not install-pkg, it's actually pkg-install.

Profile icon
Mixxer

@Coder100
it's not install-pkg, it's actually pkg-install.

Profile icon
Coder100
Profile icon
wertiop1

@Coder100 why doesnt repl allow sudo?

Profile icon
Coder100

security @wertiop1

Profile icon
wertiop1

oh ok

Profile icon
Buhron
Profile icon
ItsRakam

IT SAYS bash: install-pkg: command not found @Coder100

Profile icon
Tycho112

I get an error install-pkg command not found

Profile icon
Mixxer

@Tycho112
it's not install-pkg, it's actually pkg-install.

Profile icon
ItsRakam

 install-kg
bash: install-kg: command not found
 install-pkg
bash: install-pkg: command not found
 pkg-install
bash: pkg-install: command not found

Profile icon
damiascripting

Oh. Thank You!!

Profile icon
Coder100

no problem! @damiascripting

Profile icon
paullaster

Why do I still run into this error? Any workaround?
Notice that I have tried all the two variations
~/MERNAPP/MERN_PROJECT$ pkg-install
bash: pkg-install: command not found
~/MERNAPP/MERN_PROJECT$
bash: pkg-install: command not found
~/MERNAPP/MERN_PROJECT$

Profile icon
StudioHawaii

thanks

Profile icon
ifreemodell

So im trying to install http and lua-cson, how would I do it? @Coder100

Profile icon
Coder100

@ifreemodell like any other? install-pkg http???

Profile icon
Mixxer

@ifreemodell
it's not install-pkg, it's actually pkg-install.