D'oh (i.imgur.com)
submitted 1 year ago by to c/linuxmemes@lemmy.world
 

:-( brain didnt work.

all 16 comments

sorted by: hot top controversial new old
[–] 20 points 1 year ago (12 children)
  • [–] 20 points 1 year ago (10 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.

  • source
  • parent
  • hideshow 10 child comments
  • [–] [S] 37 points 1 year ago (7 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.

  • source
  • parent
  • hideshow 7 child comments
  • [–] 24 points 1 year ago (3 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

  • source
  • parent
  • hideshow 3 child comments
  • [–] [S] 13 points 1 year ago (2 children)

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

    I'll borrow that mate!

  • source
  • parent
  • hideshow 2 child comments
  • [–] 7 points 1 year ago (2 children)

    What were you actually trying to do

  • source
  • hideshow 2 child comments
  • [–] [S] 18 points 1 year ago (1 child)

    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.

  • source
  • parent
  • hideshow 1 child comment