RapidYT

How to install deno in linux?

Install deno in linux with easy ways.

By install-deno 2 min read

Deno is a new runtime environment for javascript. You can install deno with a bash script. For Installation, you need a curl command.

curl -fsSL https://deno.land/install.sh | sh

Output looks like Install deno with curl command

How to upgrade the old deno to the new version?

You can upgrade deno with deno upgrade command.

How to upgrade old deno to new deno version


How to delete deno in Linux?

Uninstalling the deno process is a trick for a new person. However, with my step base guideline, you can easily delete the deno and deno configuration.

Steps

Delete deno folder

Firstly, You can delete the .deno folder in your distro. Then, you can delete it with sudo rm -R $HOME/.deno command.

sudo rm -R $HOME/.deno command does not delete only the deno folder. It also deletes the entire configuration and cache.

Delete deno configuration

In the second step, You can delete the deno configuration in .bashrc file. Which is added automatically on the installation time.

open bash .bashrc file with any IDE. for example, I use nano Linux IDE and open .bashrc file with nano nano ./.bashrc

After oping .bashrc file, then you find the following configuration.

# Manually add the directory to your $HOME/.bashrc (or similar)
export DENO_INSTALL="/home/rajdeepsingh/.deno"
export PATH="$DENO_INSTALL/bin:$PATH"

If the Following configuring is found, then delete it. Now deno uninstalls successfully in your distro.


Conclusion

I hope you understand the deno installation. If you have any problems, ask in the comment section.


References

https://deno.land/#installation