Commit Graph

140 Commits

Author SHA1 Message Date
Roey Darwish Dror
7db0c03621 Refactor Linux 2021-09-02 17:09:48 +00:00
Roey Darwish Dror
2a17c553ac clippy 2021-09-02 13:04:30 +00:00
Roey Darwish Dror
d5d5abaac4 Use sudo for flatpak if connecting from SSH (fix #740) 2021-07-06 09:32:14 +03:00
Roey Darwish Dror
93881b5cca Support Alpine Linux (fix #736( 2021-07-06 09:24:42 +03:00
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
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
5989685df5 Use fwupdmgr update instead of upgrade (fix #695) 2021-04-24 06:04:52 +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
Heiko Carrasco
8b7ff6a042 Surpress explicit news printing when paru is used (#623) 2021-02-10 18:32:15 +02:00
Roey Darwish Dror
e31dc52c3a Use apt-get in Debian (fix #601) 2021-01-12 21:08:40 +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
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
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
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
Roey Darwish Dror
98a99284b3 Skip needrestart on redhat based distributions (fix #485) (#488) 2020-07-30 08:15:35 +03:00
Roey Darwish Dror
b77bbf57dd Don't require sudo for ostree (fix #479) (#480) 2020-07-21 10:05:57 +03:00
Roey Darwish Dror
4a4e779621 Add configuration flags for portage arguments (#436) 2020-06-19 10:34:45 +03:00
chhe
69f5857b2e reorg linux os check, add ID_LIKE=fedora, add tests (#432) 2020-06-15 15:33:28 +03:00
Roey Darwish Dror
2afabfa1a6 Don't run fwupdmgr in WSL (#430) 2020-06-11 19:11:57 +03:00
Roey Darwish Dror
3e08fda765 Add Trizen support (fix #271) (#409) 2020-05-15 21:10:01 +03:00
Roey Darwish Dror
819447dcdf Dnf arguments (fix #314) (#405) 2020-05-14 09:22:14 +03:00
Roey Darwish Dror
2f4267fd41 Upgrade Gentoo with --with-bdeps=y (fix #382) (#390) 2020-04-03 13:43:12 +03:00
Roey Darwish Dror
a04680720c Support Amazon Linux (fix #385) 2020-03-26 17:07:54 +02:00
Roey Darwish Dror
30505f7751 Update pihole only if using the pihole distribution (fix #373) (#375) 2020-03-17 15:11:53 +02:00
Jameson Pugh
74fd1cc5ef added rhel to CentOS (#366) 2020-03-13 12:48:46 +02:00
Roey Darwish Dror
f9374e3ddf Bump dependencies (#352) 2020-02-29 20:15:28 +02:00
Riley
7d5a026fcb Manjaro Arm doesn't have an ID_LIKE (#325) 2020-02-17 08:19:28 +02:00
slotThe
0cfb97f508 Comply with new xbps behaviour (#324) 2020-02-17 08:18:38 +02:00
Andrei Pavel
a7cc77ca13 [🐛 FIX] ignore EXIT_NOTHING_TO_DO for all fwupdmgr commands (#322) 2020-02-16 11:39:32 +02:00
Kyle Finlay
02692bd5e1 Add support for Fedora Silverblue (#312) 2020-01-30 15:27:57 +02:00
Roey Darwish Dror
d2f038f6a6 Remove rpi-update (fix #302)
According to the official RPI documentation rpi-update isn't a general
purpose tool.

https://raspberrypi.org/documentation/linux/kernel/updating.md
2020-01-28 16:11:25 +02:00
Roey Darwish Dror
7f92b56fa8 Remove redundant must_use 2019-12-21 15:32:58 +02:00
Roey Darwish Dror
ba516aa1dd Migrate from failure to anyhow/thiserror (#273) 2019-12-11 23:05:38 +02:00
Andrei Pavel
f506d52309 [🐛 FIX] --cleanup --yes for arch & prioritize yay (#258) 2019-11-20 09:10:15 +02:00
Andrei Pavel
d62a3385f8 [🐛 FIX] --yes for apt (#257) 2019-11-20 09:09:10 +02:00
Igor Petruk
3c0f8a1ab0 Adding Clear Linux update support (#256) 2019-11-13 14:18:42 +02:00
Oleksii Filonenko
f93b2720a0 Extend support for Nix/NixOS/home-manager (#253) 2019-11-11 22:16:40 +02:00
Roey Darwish Dror
4e1e0788f8 Fix a scenario where fwupdmgr has nothing to update (fix #246) 2019-11-04 22:49:22 +02:00
Roey Darwish Dror
6bed2f66c5 Show Arch news (fix #235) 2019-10-07 20:18:11 +03:00
Idan Katz
11694247c1 Support yay arguments in config file (Closes #220) (#233) 2019-10-03 08:12:43 +03:00
Roey Darwish Dror
a2f355b256 Fix anarchy Linux 2019-09-28 22:09:26 +03:00