this post was submitted on 03 May 2024
995 points (97.0% liked)

linuxmemes

21378 readers
1962 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack members of the community for any reason.
  • Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • These rules are somewhat loosened when the subject is a public figure. Still, do not attack their person or incite harrassment.
  • 3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn. Even if you watch it on a Linux machine.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, and wants to interject for a moment. You can stop now.
  •  

    Please report posts and comments that break these rules!


    Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't fork-bomb your computer.

    founded 1 year ago
    MODERATORS
     
    you are viewing a single comment's thread
    view the rest of the comments
    [–] Godnroc@lemmy.world 28 points 6 months ago (3 children)

    I'm literally trying to get into Linux and one of the first things was installing software, which involves copying and running random bits of code from whatever website has the highest search result. I would say a lot of software is running code you have no idea what it does.

    [–] irmoz@reddthat.com 32 points 6 months ago (2 children)

    I ask this with full sincerity - are you unaware of the package manager?

    [–] szczuroarturo@programming.dev 15 points 6 months ago (1 children)

    He has a point tho. The amount of copy pasting random shit from the internet into the console is way too comon if you go down the rabbit hole on some issues with the system and find a solution on some abandoned by god itself linux forum. To be fair its usualy just a comand that does shit for you in 5 seconds so you dont have to use gui buuut it does happen and i can tell what this stuff does but the average user likley dosent . Alghtough it might be less common today. Its been quite a long time since i last broke my system.

    [–] Phrodo_00@lemmy.world 2 points 6 months ago (1 children)

    I mean, I never do that without downloading the script and reading it. I also read makepkg files. It doesn't take that much to validate these things

    [–] gears@sh.itjust.works 5 points 6 months ago

    He wasn't say you personally do it. He even said that he knows what the commands do, most of the time, but that the average person does not. Especially beginners to Linux, who are more prone to break their system and be on forum rabbit holes to try and fix it.

    [–] Godnroc@lemmy.world -2 points 6 months ago (6 children)

    In much the way I am aware of the Windows store: I avoid it and work to get the software directly from the source. I regularly run into the issue of software not being there or being of unknown version.

    Perhaps that is some bias from Windows following me over.

    [–] transientpunk@sh.itjust.works 31 points 6 months ago

    That is definitely your Windows bias haunting you. Package managers are the way to get software on your Linux distro. Going straight to the source has it's place, but for 95% of use cases, you should be using your package manager.

    [–] irmoz@reddthat.com 10 points 6 months ago

    In much the way I am aware of the Windows store: I avoid it and work to get the software directly from the source.

    That is not the way things work on Linux - the repos essentially are the source. It is intended for apps to be packaged and distributed through official repos precisely to avoid the issues you listed, which are more often issues of downloading from sites. Package managers take care of incompatible versions and conflicts. That's definitely a Windows bias my friend :P

    [–] Zink@programming.dev 8 points 6 months ago

    Ok but imagine if Microsoft got altruistic and made the Windows store to be as helpful as possible and not as a marketing or user control scheme. That’s the package manager in Linux.

    [–] prunerye 3 points 6 months ago

    Wait, are you setting up PPAs? If you're using a user-friendly distro, either flathub should be enabled by default or the AUR is easily accessible with pamac or the chaotic-AUR. If software availability is a problem, I don't know what to tell you; I think you started with a more difficult distribution than you intended to. PPAs suck.

    [–] moon@lemmy.cafe 2 points 6 months ago

    You're doing it wrong. Get it from your package manager lol

    [–] TheRedSpade@lemmy.world 24 points 6 months ago (3 children)

    Installing software on Linux almost never involves "copying and running random bits of code" unless you have a need for some really obscure program. Learn how to use your distribution's package manager.

    [–] billiam0202@lemmy.world 21 points 6 months ago (1 children)

    Learn how to use your distribution's package manager.

    Also

    sudo apt update

    sudo apt upgrade

    covers what, about 60% of Linux desktops?

    [–] dan@upvote.au 5 points 6 months ago* (last edited 6 months ago)

    And sudo apt full-upgrade when a new OS version is available.

    full-upgrade is the same as upgrade except it'll remove old packages if required. (e.g. programs that don't support the new version and hold back the upgrade due to old dependencies). When upgrading Debian to a new release, I usually first run upgrade, then run full-upgrade and read the output very carefully before continuing.

    [–] RidcullyTheBrown@lemmy.world 4 points 6 months ago

    if we’re being fair, it did involve a lot of that historically. Package managers weren’t always around and even after they became established, there was still a lot of fiddling with bad drivers and various distributions had policies which didn’t allow certain software with certain licenses to be setup through their package repository and so on and so forth. Sure nowadays this is less of an issue, but then windows security is also much better than it used to be. People here seem to want to compare the latest Ubuntu to windows 98

    [–] msage@programming.dev 1 points 6 months ago

    I mean, bash is a code.

    Till next time

    [–] smileyhead@discuss.tchncs.de 18 points 6 months ago (1 children)

    Those are just tutorials showing how to install something. Typing flatpak install firefox is one and the same as going into the app store, searching for Firefox and clicking "install". Tutorial websites would just show terminal as it's more universal.
    If they ask you to actually download some file there is something very wrong.

    I often see people overwhelmed by universality of some things. Instead of searching "How to install Firefox on Linux?" what should be learned is "How to install software on Linux?" and, unless met with something badly ported, never do the search again.

    But what my meme is about is Windows-only style of having some file and by default having no idea if that's going to run in some program or be a program.

    [–] ego@lemmy.dbzer0.com 17 points 6 months ago (1 children)

    While I totally agree with you about package managers, I still run into a lot of apps that the only install option is a .deb downloaded from a webpage. Which is comparable to running a .exe on windows.

    [–] dan@upvote.au 3 points 6 months ago

    is a .deb downloaded from a webpage

    deb-get is useful for these.

    I hate directly installing Debian packages because I forget to update them (since apt won't update them). I usually either use deb-get or create my own repo for the app using Aptly.