r/linux4noobs • u/_TheCapt • 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
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?
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.
1
u/LinuxMint4Me 2d ago
Apt isn't universal. Which Linux do you use?
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.
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/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
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