Commit Graph

285 Commits

Author SHA1 Message Date
Eberhard Beilharz
2cd1ea6845 Allow to run flatpak update with sudo (#738)
This change adds the option `flatpak.use_sudo` that allows to update
the system-wide installation with sudo. When set to `true` the
system-wide installation will be updated with sudo. If set to `false`
(default) the update will be run as regular user.

This solves the problem where running `flatpak update` on a remote
system fails if run as regular user.

Fixes #737.
2021-06-30 13:37:41 +03:00
Eberhard Beilharz
74292ef6d2 Make firmware upgrade configurable (#739)
This change adds an option, firmware.upgrade, that if set to `false`
only checks for and displays available firmware updates. If set to `true`
(default) the user is offered to run the firmware upgrade.
2021-06-30 12:15:18 +03:00
Roey Darwish Dror
9205649a5f Support winget (fix #721) (#722) 2021-06-03 13:08:17 +03:00
Roey Darwish Dror
cdc7c39d02 Add silnite support (fix #701) (#714) 2021-05-29 07:54:15 +03:00
Kevin K
2bed7edaba makes rpm-ostree configurable (#712)
This commit makes it possible to *not* to use `rpm-ostree` even on
systems where it is detected.

This commit is fully backwards compatible with previous releases, and
without changing the config file all previous behaviors are the exact
same.

This commit adds the `rpm_ostree` field in the `[linux]` table of the
configuration, and defaults to `true`. This means Topgrade will first
check if `/usr/bin/rpm-ostree` exists, and only if so then check if the
user does not want to use `rpm-ostree` via the configuration. If the
user *does not* want to use `rpm-ostree`, then normal operation
continues checking for DNF or YUM.

This makes it possible for people where `rpm-ostree` is installed, but
where the system is not an `ostree` based distribtuion. This happens
when people are using things like `osbuild-composer` to build images,
or Cockpit with the Compose feature enabled (which uses
`osbuild-composer` internally).

An alternative to this commit would be to make the config field a
negative such as `no_rpm_ostree`, however that goes against the norm in
other fields.

Closes #710
2021-05-13 21:57:29 +03:00
Roey Darwish Dror
7d85ecca7c Revert "No need to run which in WSL (fix #694) (#707)"
This reverts commit ac4c23929e.
2021-05-13 21:53:13 +03:00
Roey Darwish Dror
ac4c23929e No need to run which in WSL (fix #694) (#707)
* No need to run which in WSL (fix #694)

* clippy
2021-05-10 09:40:23 +03:00
Roey Darwish Dror
4bbebf32dd Clippy 2021-05-08 22:50:42 +03:00
Roey Darwish Dror
3e9bd9bc0f Remove msupdate (fix #698) (#699)
* Remove msupdate (fix #698)

* Unused imports
2021-04-28 10:55:54 +03:00
Roey Darwish Dror
5989685df5 Use fwupdmgr update instead of upgrade (fix #695) 2021-04-24 06:04:52 +03:00
Roey Darwish Dror
cf63db2786 Remove Microsoft store (fix #674) 2021-04-23 07:01:11 +03:00
Hugo Haas
2c5d581bef Added support for fish-plug (#687)
https://github.com/kidonng/fish-plug
2021-04-12 12:14:14 +03:00
Rory O'Connell
89498ee04c Use pkcon over apt with kde neon (#683)
* Use pkcon over apt with kde neon

* create kdeneon distribution
2021-04-07 23:04:21 +03:00
Roey Darwish Dror
a6d7c6dca9 Apt arguments (fix #669) 2021-04-06 10:54:23 +03:00
Roey Darwish Dror
b165a6fe0b Keep making clippy happy 2021-04-06 10:28:07 +03:00
Roey Darwish Dror
572e8ffdf4 Run fwupdmgr update (fix #668) (#677)
* Run fwupdmgr update (fix #668)

* Pass --y to fwupdmgr
2021-03-23 06:33:30 +02:00
Roey Darwish Dror
23d9a5bf63 Fix Microsoft Store (fix #656)
Despite the fact that Topgrade explicitly tries to run the Windows Powershell, gsudo has an odd behaviour which causes it to detect whether it's being run from Powershell for Cmd.
If run from Powershell, It will launch the current powershell with the given command. If the current shell is Powershell, it will try to run the command with it.
However, Get-WmiObject doesn't exist on Powershell core.
2021-02-25 10:10:57 +02:00
Roey Darwish Dror
eb358c1a88 Use redirection to $null instead of Out-Null (fix #651) 2021-02-22 10:37:35 +02:00
Roey Darwish Dror
358fbd8c02 Fix nix on multi-user setup (fix #646) (#650) 2021-02-21 12:06:37 +02:00
Roey Darwish Dror
f73c3ef31a Stop checking the return value of msupdate in macOS (fix #644) 2021-02-21 09:42:47 +02:00
Roey Darwish Dror
4fe3c257b6 Fixed Microsoft Store terminology 2021-02-18 14:20:30 +02:00
Roey Darwish Dror
f06230482e Run bash-it with the interactive flag (fix #642) (#643) 2021-02-18 06:47:59 +02:00
Roey Darwish Dror
8af7910df0 Fix WSL 2021-02-13 07:05:58 +02:00
Roey Darwish Dror
746ffda444 Windows App Store (fix #622) (#624) 2021-02-11 06:31:59 +02:00
Heiko Carrasco
8b7ff6a042 Surpress explicit news printing when paru is used (#623) 2021-02-10 18:32:15 +02:00
Roey Darwish Dror
729b5b6cb4 Bash-it (fix #621) (#625) 2021-02-10 08:58:03 +02:00
Roey Darwish Dror
098b60ba38 Fix Linuxbrew (fix #616) (#620) 2021-02-08 11:33:06 +02:00
Roey Darwish Dror
62ec3a94e6 Revert "wsl fix" (fix #612)
This reverts commit db1dea9bea.
2021-02-06 06:56:26 +02:00
Roey Darwish Dror
66e62cc3eb Windows: look for git repos in the startup directory 2021-02-02 22:28:22 +02:00
Roey Darwish Dror
e31dc52c3a Use apt-get in Debian (fix #601) 2021-01-12 21:08:40 +02:00
Anders Rasmussen
dcfdeb2d3b switch args to brew cask command (#596) 2021-01-08 06:29:05 +02:00
Roey Darwish Dror
31db02d95a Split brew cask into a seperate step (fix #588) (#593) 2020-12-30 10:35:50 +02:00
Roey Darwish Dror
a519bc5475 Enable distro-sync in Fedora (fix #587) (#590) 2020-12-26 09:17:54 +02:00
Roey Darwish Dror
8c771d2594 Revert "Use distro-sync in dnf (fix #576) (#579)" (fix #587)
This reverts commit 76ae636f20.
2020-12-21 09:45:28 +02:00
Roey Darwish Dror
1fdf9c78b7 ARM Brew support (#585) 2020-12-16 13:43:38 +02:00
Marcelo dos Santos Mafra
e2cc0a8547 Use DNF-3 in fedora
`/usr/bin/dnf` is a symlink to `/usr/bin/dnf-3` in the latest Fedora and CentOS 8. CentOS 7 doesn't have DNF at all.
2020-12-16 09:24:47 +02:00
Roey Darwish Dror
76ae636f20 Use distro-sync in dnf (fix #576) (#579) 2020-12-07 20:41:29 +02:00
Okan Esen
181b397586 fisher self-update deprecated -> use fisher update (#557) 2020-11-05 13:54:50 +02:00
Roey Darwish Dror
2e0275b816 Add paru support (fix #548) (#552) 2020-11-02 14:00:04 +02:00
Eric Nielsen
7783fc77ba Add support to Zim (#545) 2020-10-24 22:46:38 +03:00
Roey Darwish Dror
0a903fc473 Brew --greedy and --formula are mutual exclusive (fix #535) (#537) 2020-10-05 13:51:21 +03:00
Roey Darwish Dror
f5e6dc0fb3 Deprecate the brew cask step (fix #520) (#529) 2020-10-01 14:31:36 +03:00
Hsiao-nan Cheung
821168a3d5 Fix oh-my-fish (#524) 2020-09-24 08:21:09 +03:00
Roey Darwish Dror
dd61835332 Fix BSDs (fix #519) 2020-09-06 19:43:14 +03:00
Roey Darwish Dror
b8cca4e00c Don't use deprecated brew cask flag (fix #516) 2020-09-05 07:54:48 +03:00
Roey Darwish Dror
ce06b6e307 Add oh-my-fish (fix #513) (#514) 2020-09-03 09:32:45 +03:00
Roey Darwish Dror
6b37839b01 Add Garuda os_release 2020-08-29 07:24:15 +03:00
Roey Darwish Dror
989eab560e Add Garuda os_release 2020-08-29 07:24:00 +03:00
Idan Katz
e09a73c102 Fix garuda linux detection (#507)
* Fix garuda linux detection

* Add artix linux support

Co-authored-by: Roey Darwish Dror <roey.ghost@gmail.com>
2020-08-27 21:21:12 +03:00
Roey Darwish Dror
417ca1257a Add --show-skipped (fix #501) (#502) 2020-08-21 23:04:36 +03:00