this post was submitted on 13 Aug 2025
116 points (97.5% liked)

linuxmemes

27042 readers
316 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 users for any reason. This includes using blanket terms, like "every user of thing".
  • Don't get baited into back-and-forth insults. We are not animals.
  • 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.
  • 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, no politics, no trolling or ragebaiting.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, <loves/tolerates/hates> systemd, and wants to interject for a moment. You can stop now.
  • 5. πŸ‡¬πŸ‡§ Language/язык/Sprache
  • This is primarily an English-speaking community. πŸ‡¬πŸ‡§πŸ‡¦πŸ‡ΊπŸ‡ΊπŸ‡Έ
  • Comments written in other languages are allowed.
  • The substance of a post should be comprehensible for people who only speak English.
  • Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
  • 6. (NEW!) Regarding public figuresWe all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations.
  • Keep discussions polite and free of disparagement.
  • We are never in possession of all of the facts. Defamatory comments will not be tolerated.
  • Discussions that get too heated will be locked and offending comments removed.
  • Β 

    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 remove France.

    founded 2 years ago
    MODERATORS
     

    :-( brain didnt work.

    top 16 comments
    sorted by: hot top controversial new old
    [–] Colloidal@programming.dev 22 points 2 weeks ago (2 children)
    [–] Voroxpete@sh.itjust.works 21 points 2 weeks ago (2 children)

    Best I can tell they were trying to remove all packages that depended on a specified package, but fucked up the syntax?

    Apk del --purge removes a package with its dependencies. Rather than specify the package directly, they've provided the output of one command piped through another. The first command is apk info -R which would in theory give the reverse dependencies of a package, if they'd given one. The second command is an awk statement that just grabs only the first column of each line that gets piped into it. I'm not sure why it would take 60 minutes to resolve though, since I'm pretty sure apk info -R with no package specified would produce no usable output. Also, ctrl-c exists.

    [–] KarlLimbo@lemmy.world 37 points 2 weeks ago (3 children)

    apk del --purge $(apk info -R | awk '{print $1}')

    (1/243) Purging alpine-base (3.16.9-r0)

    (2/243) Purging alpine-baselayout (3.2.0-r23)

    (3/243) Purging alpine-baselayout-data (3.2.0-r23)

    (4/243) Purging apk-tools (2.12.9-r3)

    ....

    it took me that time to restore the system ...obviously not being able to boot it anymore. i feel deeply ashamed.

    [–] PlasticExistence@lemmy.world 24 points 2 weeks ago (1 children)

    You shouldn’t feel shame. You’re just part of the club now. It seems to me that borking your system using a terminal is just a right of passage

    [–] KarlLimbo@lemmy.world 13 points 2 weeks ago (1 children)

    borking your system using a terminal is just a right of passage

    I'll borrow that mate!

    [–] bigboitricky@lemmy.world 3 points 2 weeks ago (1 children)

    Screw your system up it's the best way to learn is how I've always felt

    [–] KarlLimbo@lemmy.world 3 points 2 weeks ago

    true. but man it was late so like at the worst time... just hate it so much when that happens.

    [–] Voroxpete@sh.itjust.works 4 points 2 weeks ago (1 children)

    Ahhh... I had wondered if issuing the info command without a package would issue for all packages, but the docs seemed to suggest otherwise. So, pretty much an rm -rf / then.

    [–] KarlLimbo@lemmy.world 1 points 2 weeks ago
    [–] UltraBlack@lemmy.world 2 points 2 weeks ago

    Oh well, best way to learn something new, eh?

    [–] Colloidal@programming.dev 1 points 2 weeks ago (1 children)

    Thank you. Not familiar with apk, only apt. Oof.

    [–] Voroxpete@sh.itjust.works 2 points 2 weeks ago

    I'm not that familiar myself, had to check the docs for most of that.

    [–] ladicius@lemmy.world 5 points 2 weeks ago* (last edited 2 weeks ago)

    It produces a meme?

    [–] Tangent5280@lemmy.world 10 points 2 weeks ago (1 children)

    What were you actually trying to do

    [–] KarlLimbo@lemmy.world 21 points 2 weeks ago (1 children)

    it was late. i "thought" i might free up space inside that alpine lxc. i wasnt. i just like a moran wiped all the apps. then went to bed. i cant even recall what i thought would prevent this from destroying everything. at least it wasnt a closed OS...that would have cost me 51yrs.

    [–] Tangent5280@lemmy.world 3 points 2 weeks ago

    Happens to the best of us. I learned early that Timeshift (On mint) was my best friend.