Skip to content
← Back to Community
How to install linux packages?
Profile icon
CoffeeGuy

I am trying to unzip a file here, but when I do "unzip blabla.zip"

it says, command not found, So, i tried doing "install-pkg unzip"

and then it says "unzip: command not found"

How can I unzip that file?

Answered by SixBeeps [earned 5 cycles]
View Answer
Voters
Profile icon
JakubFabijan
Profile icon
CoffeeGuy
Comments
hotnewtop
Profile icon
programmeruser

unzip works in bash repls. Not sure why some commands aren't available in Node.js repls.

Profile icon
CoffeeGuy

@programmeruser
is there any way i can use "install-pkg" in a nodejs repl?

Profile icon
programmeruser

@CoffeeGuy
I don't think that works either.

Profile icon
SixBeeps

@CoffeeGuy
Ah, I remember now. Node.js Repls aren't on polygott yet, so they in specific don't get things like install-pkg. If you make any other kind of Repl, though, you can.

Profile icon
CoffeeGuy

@SixBeeps
Aw man :( anyways.. cheerio!

Profile icon
SX9

@SixBeeps
how about html repls? I cant extract tar.gz

Profile icon
programmeruser

@SX9
I believe that the tar command is available, however the unzipped contents can't be accessed through the web

Profile icon
Buhron

Add pkgs.unzip to replit.nix

Profile icon
StudioHawaii

thanks

Profile icon
RYANTADIPARTHI

i think if you want to install. Use the shell. and do pip install. Or click the package icon, and choose your installation.

Profile icon
CoffeeGuy

@RYANTADIPARTHI
I didn't say a python package, I said a linux package... :P

Profile icon
SixBeeps

I've never not been able to use unzip before, but if they've changed things, your best bet is to convert it to a tar.gz or similar and extract that using tar and gzip.

Profile icon
CoffeeGuy

@SixBeeps
Oh ok, np, but is there any way to install linux packages tho?