Sha256: d15b21a7fde842dc06b4d986a3f5145bd0c008e93c99c1d1326b98d41f49eb53

Contents?: true

Size: 698 Bytes

Versions: 5

Compression:

Stored size: 698 Bytes

Contents

# frozen_string_literal: true

module Getch
  module Void
    class Update
      def initialize
        @log = Log.new
        x
      end

      protected

      # https://docs.voidlinux.org/installation/guides/chroot.html#install-base-system-rootfs-method-only
      def x
        sync
        update
      end

      private

      def sync
        @log.info "Synchronize index...\n"
        ChrootOutput.new '/usr/bin/xbps-install', '-Suy', 'xbps'
      end

      def update
        ChrootOutput.new '/usr/bin/xbps-install -uy'
        ChrootOutput.new '/usr/bin/xbps-install', '-Sy', 'base-system'
        ChrootOutput.new '/usr/bin/xbps-remove -y base-voidstrap'
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
getch-0.7.0 lib/getch/void/update.rb
getch-0.5.0 lib/getch/void/update.rb
getch-0.3.6 lib/getch/void/update.rb
getch-0.3.5 lib/getch/void/update.rb
getch-0.3.4 lib/getch/void/update.rb