r/linux4noobs • • 2d ago

installation Is sudo apt install the right command?

I’ve been messing with the crostini terminal on my chromebook (i haven’t swapped to the new container-less version yet) in an attempt to get blender installed, but i don’t quite understand what im doing.

I originally used the command “sudo apt install blender” after the sudo apt update upgrade command but i got paranoid about if what i installed is legit so i wiped it and reinstalled the terminal. (im not linux savvy at all)

Did i do it right the first time? I just wanna know if im on the right track or if i did something wrong. Any advice is appreciated

Debian bookworm 12 is what’s installed on the dev terminal if that helps

3 Upvotes

24 comments sorted by

2

u/_TheCapt 2d ago

It’s the chromebook crostini terminal btw i don’t know if that helps at all

I checked the version in it and it says bookworm 12 and i know that chrome uses debian for crostini

That’s all i know

2

u/AlexiaDehShark 2d ago

What distro you using?

1

u/_TheCapt 2d ago

Debian bookworm is what’s installed with the dev terminal I believe

5

u/doc_willis 2d ago

blender is in the Debian Repos.

$ apt search ^blender
blender/stable 4.3.2+dfsg-2 amd64
  Very fast and versatile 3D modeller/renderer

So installing it via 'apt' would install from those repos, which are enabled by default.

So i am not clear on " if what i installed is legit " concern, if it came from the official repos, it was packaged and maintained by the Distro developers.

If you enabled other 3rd party repos, or downloaded it from some web site, then yes, it may be more of a concern.

2

u/_TheCapt 2d ago

Thank you so much! I was looking for clarification as I get worried that I screwed something up without realizing as linux is definitely not something I’m used to.

Idk why i worried since it literally installed blender 3.4.1 when i did it but i thought it wouldn’t hurt to ask

2

u/atlasraven council member but not master 2d ago

Yes, that's the correct command for Debian. It installs software from the Debian Repository (a central software store like Google Play). It's generally safe. Use more scrutiny when installing from PPAs or other 3rd party sources.

10

u/MasterGeekMX Mexican Linux nerd trying to be helpful 2d ago

apt is the right program.

See, Linux OSes are in fact a collection of programs, each developed by separate teams. To handle that package managers were invented. They work by bundling a program, other files it may need, and information about the program inside a file called a package. These get uploaded to servers called repositories so people can download and install them using a program called a package manager.

Debian, one of the OG Linux systems developed the Advanced Package Tool (APT). As many Linux OSes are based around Debian, APT is quite widespread, but it is not the only package manager out there. Fedora and the Red Hat family use DNF, and Arch Linux and it's offspring use PacMan.

Package managers were first developed to handle system components, but with time people found out they could also deliver apps and end-user programs. You simply prepare packages for it and upload them to the repository.

And no, there is no malware out there. Repositories (at least the ones that come preconfigured) are managed and curated by the distro developers, as after all core components of the system are up there. Official repos aren't a wild land where anyone can upload something to sneak in and backdoor you.

It is when you add third-arty repositories, or use open-to-the-public repos like the Arch User Repository that you must be cautious.

6

u/atlasraven council member but not master 2d ago

If installing a new app from Debian is like buying a banana from the grocery store, the AUR is like climbing into their dumpster.

1

u/LinuxMint4Me 2d ago

Apt isn't universal. Which Linux do you use?

1

u/_TheCapt 2d ago

Debian bookworm. It’s what gets installed when activating the dev terminal in settings I believe

1

u/AN-SSQ-108V2 2d ago

Assuming you are using a Debian flavored distro... "sudo apt update" and "sudo apt upgrade" are indeed legit commands (the later will even ask you Y/N to confirm the upgrade process).

Not 100% sure why the paranoia. You can see what repositories you are updating from by examining the contents of the repository file(s) located at /etc/apt/sources.list.d/

Any source URL you do not trust for whatever reason can edited from the repo files.

But bear mind those are also repos for system and security patches.

2

u/_TheCapt 2d ago

Debian Bookworm 12 is my distro in the terminal. I technically used sudo apt update && sudo apt upgrade, and then sudo apt install blender and it did install it (3.4.1 to be exact) but i thought asking wouldn’t hurt

1

u/AN-SSQ-108V2 2d ago

Gotcha. You're good to go :)

1

u/skyfishgoo 2d ago

if you are using debian and the version of blender on their default repositories it the version you want, then yes, that would be the right command.

why did you think it was wrong?

the repository version of the app is likely your safest option, but it may be up to 2yrs out of date.

pulling the version from flathub has more risks but may get you new features.

installing the appimage directly from the developer is going to be the latest and greatest (flaws and all).

1

u/_TheCapt 2d ago

I just get worried doing any new tech stuff out of fear of breaking something (of which is practically impossible on a chromebook but still). It did install blender 3.4.1 (im on bookworm 12 currently i believe) but i just wanted to be sure

2

u/skyfishgoo 2d ago

interesting... i'm on kubuntu (based on debian) and i have v4.0.2

the flatpak is unverified so, that's a risk

they have a snap version on their website that is v5.3, but you would need to install snap on debian (kubuntu comes with it).

get over your fear by installing timeshift and learn how to restore your backups

knowing you can always get back to a working configuration within minuets is a load off.

1

u/AutoModerator 2d ago

We have some installation tips in our wiki!

Try this search for more information on this topic.

✻ Smokey says: always install over an ethernet cable, and don't forget to remove the boot media when you're done! :)

Comments, questions or suggestions regarding this autoresponse? Please send them here.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/-Ilovepokemon- 2d ago

yes. that is correct. however you need to look up the specific package names for each program

1

u/collinalexbell 2d ago

 I got paranoid about if what i installed is legit

It's actually kind of amusing that Linux users just trust their upstream repositories.

1

u/Levgils 1d ago

10 out of10

1

u/studiocrash 1d ago

I never knew that Chrome OS had a Linux VM app available. That’s surprisingly cool. Do you have options to use alternative Linux distributions other than Debian 12 in the VM? Debian 13 has been out for a while now.

Is Chrome OS still supported with security updates? I heard it was being discontinued.

To answer your questions, yes, those are the right commands to update the system and install an application in Debian. Apt will actually update the system and all applications at the same time, which helps avoid dependency conflicts.

1

u/proverbialbunny 1d ago

Normally I’d say if you’re using the terminal you’re probably doing it wrong. Normally you want to use your distros App Store / software center which is a gui app to find and install software, but Debian bookworm doesn’t have one so using terminal and apt is correct for finding and installing apps. This is not beginner friendly. You chose a harder distro. 

In terminal:

apt-cache search <app name> 

sudo apt install <result from search>

Apt doesn’t always add the app to the start menu so you might need to launch it from terminal. 

If you’re looking for a more beginner friendly distro Linux Mint is the most popular beginner distro which is based on Ubuntu which is based on Debian, so it’s like a more friendly Debian Linux under the hood.  There’s also MX Linux which is directly based on Debian and is very popular, but I haven’t used it so I do not know how beginner friendly it is. 

0

u/Quacken8 2d ago

Ye, don't worry. If u wanna be super sure go to blender's website and see what command they suggest for installing, altho they might recommend a different package manager.

There isn't too much malware in the apt repository so in general I wouldn't be too worried about installing stuff from there

But what do u mean u reinstalled the terminal..? You mean you reinstalled the terminal app? That probably wouldn't have done anything if the blender package was malware. That's like reinstalling chrome after you downloaded a virus with it 

2

u/_TheCapt 2d ago edited 2d ago

Chromebooks have a setting in the settings app called developer settings, and in there you can install a vm terminal of Linux as an app that you can uninstall and reinstall whenever. It’s different than straight up activating developer mode and installing a linux os (it’s why i use it as it seems more beginner friendly).

The way the terminal is built is as a sandbox and makes everything placed in the terminal unable to do anything outside it. And uninstalling it wipes everything installed or placed inside

That’s about all the knowledge i have on it

It’s called crostini if that helps