Reset msys2 #3535
Reset msys2
#3535
Replies: 2 comments 1 reply
-
2023-02-06
I think:
but i haven't yet used those tools. |
Beta Was this translation helpful? Give feedback.
0 replies
-
2023-02-15 This example ( after: #3565 (comment) ) is a nice illustration: pacman usage notes to self:
Summary $ # Remove Recursively
$ pacman -R --recursive <package>
$ # Query unrequired
$ pacman -Q --unrequired Noting on 2023.03.24: $ ##### Virgin Info
$ pacman -Qe
$ pacman -Qt
$ # Sync install cvs
$ pacman -S cvs <<< y
resolving dependencies...
looking for conflicting packages...
Packages (2) heimdal-7.8.0-3 cvs-1.11.23-4
...
$ ##### Trial runs Query
$ pacman -Qe
base 2022.06-1
cvs 1.11.23-4
filesystem 2023.02.07-1
msys2-runtime 3.4.5-1
pactoys r55.8860e1f-1
$ pacman -Qt
base 2022.06-1
cvs 1.11.23-4
pactoys r55.8860e1f-1
$ ##### Trial runs Remove
$ # Remove
$ pacman -R cvs <<< n
checking dependencies...
Packages (1) cvs-1.11.23-4
...
$ # Remove unneeded
$ pacman -Ru cvs <<< n
checking dependencies...
Packages (1) cvs-1.11.23-4
...
$ # Remove recursive: successful
$ pacman -Rs cvs <<< n
checking dependencies...
Packages (2) heimdal-7.8.0-3 cvs-1.11.23-4
...
$ ##### Actual Removal
$ pacman -R cvs <<< y
checking dependencies...
Packages (1) cvs-1.11.23-4
...
$ ##### Query unrequired: successful
$ pacman -Qt
base 2022.06-1
heimdal 7.8.0-3
pactoys r55.8860e1f-1
$ # Query explicit
$ pacman -Qe
base 2022.06-1
filesystem 2023.02.07-1
msys2-runtime 3.4.5-1
pactoys r55.8860e1f-1 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there some way to reset msys2?
That is, which
(to take care of things like base cleanup and base metapack)
(to take care of things like filesystem: drop agm2 function #3484)
That is, essentially some way which takes in the old state of the installation directory of msys2, and returns the directory as if msys2 was just installed from scratch with a recent msys2 installer??
how just reinstalling msys2-installer differs from this
this imagined command will just download the latest installer_matching_data
Some thoughts regarding how this can be accomplished using existing commands:
pacman -Syu
:updating core
can take care of things like base cleanup right?--explicit
packages that are there on a fresh install of msys2 currently are:base filesystem msys2-runtime
--unrequired
by above 3 be listed and hence uninstalled? Note that those packages may be required by other packeages.Beta Was this translation helpful? Give feedback.
All reactions