Commit Graph

116 Commits

Author SHA1 Message Date
Roey Darwish Dror
fdf03f6548 Support deb-get (#925) 2022-05-07 06:14:20 +00:00
Roey Darwish Dror
5ecf8300ef Execute-elevated (#892)
* Introduce the execute elevated method (fix #885)

* fmt

* Fix nix with doas

* Bad import
2022-04-09 16:29:55 +03:00
Leonardo Eugênio
54e3d87b23 Support yes flag for Void (#851) 2022-02-06 23:47:52 +02:00
Roey Darwish Dror
d43b6293b6 Make clippy happy 2022-02-06 20:49:29 +02:00
Funky185540
d15bc32614 linux: Ignore "--yes" for rpm-ostree upgrade (#849)
Previously when performing the "system" upgrade step, rpm-ostree would
be passed a "--yes" argument when it was configured in topgrade.
However, this is not an option available for rpm-ostree, so it would
cause an error and abort execution of the updates.
2022-02-01 12:46:27 +02:00
Roey Darwish Dror
5e7453b387 Make ConfigUpdate an individual step (fix #843) 2022-01-26 22:52:52 +02:00
Roey Darwish Dror
5f4dd33f1f Don't run pacdiff when --yes is specified (fix #846) 2022-01-26 22:51:00 +02:00
Roey Darwish Dror
63f4e01650 Preserve DIFFPROG when running Pacdiff in sudo (fix #842) 2022-01-24 20:32:48 +02:00
Roey Darwish Dror
b34cc1b0f8 Add a seperator to pacstall (fix #826) 2022-01-06 21:41:36 +02:00
Aroun
fb0d726703 fix: pacstall should run without yay arguments (#824)
fix: pacstall should run without yay arguments

Co-authored-by: Zahrun <Zahrun@github.com>
2022-01-06 05:44:37 +02:00
Funky185540
81fb880155 Linux: System: Fix rpm-ostree detection (#816)
On a rpm-ostree based system, topgrade would previously fail to detect
the rpm-ostree executable and fall back to yum instead, which isn't
available. This was caused by constructing a Path instance with
`Path::new`, rather than querying the underlying OS for a path to the
rpm-ostree executable.

Make the `system` update step use `which` to determine if an executable
called "rpm-ostree" is available on the system and get the correct path
to the executable.
2021-12-26 11:42:09 +02:00
Roey Darwish Dror
3f12cf11f6 Unify pacdiff and etc-update 2021-12-18 20:20:00 +02:00
Roey Darwish Dror
2c7dfb66c5 Remove obsolete struct (fix #812) 2021-12-18 20:14:00 +02:00
Roey Darwish Dror
e769baaaca pacdiff needs vim 2021-12-15 21:49:03 +02:00
Roey Darwish Dror
4716cb7c94 Add Bedrock Linux support (fix #745) (#747)
* Bedrock Linux (fix #745)

* Add more distributions

* fix

* fix

* Fix

* Merge

* Move pacnew to the correct location

* Version bump

* Correct spelling for GNOME Shell extensions update (#778)

* fix gnome shell extensions update object path (#788)

* config: ArchPackageManager should be snake_case (#784)

* config: ArchPackageManager should be snake_case

* Remove unnecessary strum macro

* Add arch_package_manager to config.example.toml

* Add release pipeline

* Run GNOME update only when using GNOME

* Delete travis file and appveyor

* Bump

* Support rust 1.51.0 (#789)

* Cross compilation

* Bump

* fix: GNOME detection for customized version (#790)

Signed-off-by: Noel Georgi <git@frezbo.dev>

* Add a flag to disable showing Arch Linux news (fix #786)

* Bump

* Update pacstall (fix #769)

* Add an option to force vim plug update (#795)

* Add an option to force vim plug update (fix #751)

* Rustfmt

* Update src/config.rs

Co-authored-by: M*C*O <mcofficer@gmx.de>

Co-authored-by: M*C*O <mcofficer@gmx.de>

* Add new step pacdiff (#796)

* Add Support for Spicetify (#798)

* Look for ~/.config/emacs directory in Windows (fix #766)

* Pass --force to doom when -y is set (fix #799)

* Implement cleanup for flatpak (#801)

* Cleanup flatpak

* Fix compile error

* Make sure we only move our values at the very end

* Access config.cleanup() through ExecutionContext

* Improve man page (#803)

Wordings & argument format

* Avoid running remote topgrade on the current host (fix #804) (#807)

* Merge the command line and the configuration flags of --only and --disable (fix #805) (#806)

* Merge the command line and the configuration flags of --only and --disable (fix #805)

* Fix

* Fix rust requirement in the readme

* Selective yes (fix #802) (#808)

* Selective yes flag (fix #802)

* Selective yes flag (fix #802)

* selective yes

* MacOS

* Fix bedrock detection

* Bedrock fixes

* format

* Fedora fixes

Co-authored-by: Björn Daase <bjoern.daase@gmail.com>
Co-authored-by: modularTaco <37046961+modularTaco@users.noreply.github.com>
Co-authored-by: M*C*O <mcofficer@gmx.de>
Co-authored-by: Noel Georgi <git@frezbo.dev>
Co-authored-by: Manuel Hässig <mhaessig@users.noreply.github.com>
Co-authored-by: Janek <27jf@pm.me>
2021-12-09 15:16:42 +02:00
Roey Darwish Dror
ab3ff0ecae Selective yes (fix #802) (#808)
* Selective yes flag (fix #802)

* Selective yes flag (fix #802)

* selective yes

* MacOS
2021-12-06 14:44:20 +02:00
M*C*O
8fb8927fea Implement cleanup for flatpak (#801)
* Cleanup flatpak

* Fix compile error

* Make sure we only move our values at the very end

* Access config.cleanup() through ExecutionContext
2021-11-20 15:32:20 +02:00
Manuel Hässig
f70305adcb Add new step pacdiff (#796) 2021-11-06 20:55:38 +02:00
Roey Darwish Dror
d002b1ab1a Update pacstall (fix #769) 2021-11-01 09:11:01 +02:00
Roey Darwish Dror
539b267eef Support rust 1.51.0 (#789) 2021-10-28 22:05:35 +03:00
Roey Darwish Dror
897b3094d8 Move pacnew to the correct location 2021-10-25 22:53:53 +03:00
Roey Darwish Dror
fb18af12ac Aur helper (#776)
* Arch Refactor

* Clippy
2021-10-25 22:03:57 +03:00
Roey Darwish Dror
9023942a85 Pacstall (fix #764) (#769) 2021-10-25 21:33:58 +03:00
Roey Darwish Dror
fab8f1a9f1 Support PureOS (fix #753) (#771) 2021-10-15 06:15:38 +03:00
Sean McAvoy
84ad4dbeb4 add id_like for alpine (#767)
tested to work with:
postmarketOS: https://postmarketos.org
should work with:
Adelielinux Linux: https://www.adelielinux.org
2021-10-14 12:23:39 +03:00
Marcin Puc
1478d079ca Add minor refactorings (#754) 2021-09-04 21:01:19 +03:00
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