Ejemplo n.º 1
0
    def run(cls, query):
        if not opi.ask_yes_or_no(
                "Do you want to install Chrome from Google repository?", 'y'):
            return

        opi.add_repo(
            filename='google-chrome',
            name='google-chrome',
            url='http://dl.google.com/linux/chrome/rpm/stable/x86_64',
            gpgkey='https://dl.google.com/linux/linux_signing_key.pub')

        opi.install_packages(['google-chrome-stable'])
        opi.ask_keep_repo('google-chrome')
Ejemplo n.º 2
0
    def run(cls, query):
        if not opi.ask_yes_or_no(
                "Do you want to install Skype from Microsoft repository?",
                'y'):
            return

        opi.add_repo(filename='skype-stable',
                     name='Microsoft Skype',
                     url='https://repo.skype.com/rpm/stable/',
                     gpgkey='https://repo.skype.com/data/SKYPE-GPG-KEY')

        opi.install_packages(['skypeforlinux'])
        opi.ask_keep_repo('skype-stable')
Ejemplo n.º 3
0
    def run(cls, query):
        if not opi.ask_yes_or_no(
                "Do you want to install .NET from Microsoft repository?", 'y'):
            return

        opi.add_repo(
            filename='dotnet',
            name='Microsoft .NET',
            url='https://packages.microsoft.com/opensuse/15/prod/',
            gpgkey='https://packages.microsoft.com/keys/microsoft.asc')

        opi.install_packages(['dotnet-sdk-5.0'])
        opi.ask_keep_repo('dotnet')
Ejemplo n.º 4
0
	def run(cls, query):
		if not opi.ask_yes_or_no("Do you want to install plexmediaserver from Plex repository?", 'y'):
			return

		opi.add_repo(
			filename = 'PlexRepo',
			name = 'PlexRepo',
			url = 'https://downloads.plex.tv/repo/rpm/$basearch/',
			gpgkey = 'https://downloads.plex.tv/plex-keys/PlexSign.key'
		)

		opi.install_packages(['plexmediaserver'])
		opi.ask_keep_repo('PlexRepo')
Ejemplo n.º 5
0
	def run(cls, query):
		if not opi.ask_yes_or_no("Do you want to install Teams from Microsoft repository?", 'y'):
			return

		opi.add_repo(
			filename = 'teams',
			name = 'MS Teams',
			url = 'https://packages.microsoft.com/yumrepos/ms-teams',
			gpgkey = 'https://packages.microsoft.com/keys/microsoft.asc'
		)

		opi.install_packages(['teams'])
		opi.ask_keep_repo('teams')
Ejemplo n.º 6
0
    def run(cls, query):
        if not opi.ask_yes_or_no(
                "Do you want to install VS Code from Microsoft repository?",
                'y'):
            return

        opi.add_repo(
            filename='vscode',
            name='Visual Studio Code',
            url='https://packages.microsoft.com/yumrepos/vscode',
            gpgkey='https://packages.microsoft.com/keys/microsoft.asc')

        opi.install_packages(['code'])
        opi.ask_keep_repo('vscode')
Ejemplo n.º 7
0
    def run(cls, query):
        if not opi.ask_yes_or_no(
                "Do you want to install Vivaldi from Vivaldi repository?",
                'y'):
            return

        opi.add_repo(
            filename='vivaldi',
            name='vivaldi',
            url='https://repo.vivaldi.com/archive/rpm/$basearch',
            gpgkey='https://repo.vivaldi.com/archive/linux_signing_key.pub')

        opi.install_packages(['vivaldi-stable'])
        opi.ask_keep_repo('vivaldi')
Ejemplo n.º 8
0
    def run(cls, query):
        if not opi.ask_yes_or_no(
                "Do you want to install VS Codium from paulcarroty_vscodium repository?",
                'y'):
            return

        opi.add_repo(
            filename='vscodium',
            name='Visual Studio Codium',
            url='https://paulcarroty.gitlab.io/vscodium-deb-rpm-repo/rpms',
            gpgkey=
            'https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/master/pub.gpg'
        )

        opi.install_packages(['codium'])
        opi.ask_keep_repo('vscodium')
Ejemplo n.º 9
0
	def run(cls, query):
		if not opi.ask_yes_or_no("Do you want to install slack from the slack repository?", 'y'):
			return

		opi.add_repo(
			filename = 'slack',
			name = 'slack',
			url = 'https://packagecloud.io/slacktechnologies/slack/fedora/21/$basearch',
			gpgkey = 'https://packagecloud.io/slacktechnologies/slack/gpgkey'
		)

		# tell slack cron not to mess with our repos
		subprocess.call(['sudo', 'rm', '-f', '/etc/default/slack'])
		subprocess.call(['sudo', 'touch', '/etc/default/slack'])

		opi.install_packages(['slack'])
		opi.ask_keep_repo('slack')
Ejemplo n.º 10
0
    def run(cls, query):
        if not opi.ask_yes_or_no(
                "Do you want to install Edge from Microsoft repository?", 'y'):
            return

        opi.add_repo(
            filename='microsoft-edge',
            name='MS Edge',
            url='https://packages.microsoft.com/yumrepos/edge',
            gpgkey='https://packages.microsoft.com/keys/microsoft.asc')

        # tell rpm post script not to mess with our repos
        subprocess.call(
            ['sudo', 'rm', '-f', '/etc/default/microsoft-edge-dev'])
        subprocess.call(['sudo', 'touch', '/etc/default/microsoft-edge-dev'])

        opi.install_packages(['microsoft-edge-dev'])
        opi.ask_keep_repo('microsoft-edge')
Ejemplo n.º 11
0
    def run(cls, query):
        if not opi.ask_yes_or_no(
                "Do you want to install Teamviewer from Teamviewer repository?",
                'y'):
            return

        opi.add_repo(
            filename='teamviewer',
            name='Teamviewer',
            url=
            'https://linux.teamviewer.com/yum/stable/main/binary-$basearch/',
            gpgkey='https://linux.teamviewer.com/pubkey/currentkey.asc')

        opi.install_packages(['teamviewer-suse'])
        # Teamviewer packages its own repo file so our repo file got saved as rpmorig
        subprocess.call(
            ['sudo', 'rm', '-f', '/etc/zypp/repos.d/teamviewer.repo.rpmorig'])
        opi.ask_keep_repo('teamviewer')
Ejemplo n.º 12
0
	def run(cls, query):
		# Install Packman Codecs
		if not opi.ask_yes_or_no("Do you want to install codecs from Packman repository?", 'y'):
			return

		opi.add_packman_repo(dup=True)
		opi.install_packman_packages([
			'ffmpeg',
			'gstreamer-plugins-bad',
			'gstreamer-plugins-libav',
			'gstreamer-plugins-ugly',
			'libavcodec-full',
			'vlc-codecs',
		])

		opi.install_packages([
			'gstreamer-plugins-good',
			'gstreamer-plugins-good-extra',
		])
Ejemplo n.º 13
0
Archivo: zoom.py Proyecto: hauk92/opi
	def run(cls, query):
		if not opi.ask_yes_or_no("Do you want to install zoom from zoom.us?", 'y'):
			return

		subprocess.call(['sudo', 'rpm', '--import', 'https://zoom.us/linux/download/pubkey'])
		opi.install_packages(['https://zoom.us/client/latest/zoom_openSUSE_x86_64.rpm'])