# Not wise conduct ends like this

**URL:** <https://forum.endeavouros.com/t/not-wise-conduct-ends-like-this/35831>\
**Category:** Newbie\
**Created:** [January 10, 2023, 10:01am UTC](https://forum.endeavouros.com/t/not-wise-conduct-ends-like-this/35831 "2023-01-10T10:01:28Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![matadrox](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/m/5f9b8f/32.png) [@matadrox](https://forum.endeavouros.com/u/matadrox)\
**Post date:** [January 10, 2023, 10:01am UTC](https://forum.endeavouros.com/t/not-wise-conduct-ends-like-this/35831/1 "2023-01-10T10:01:28Z")

</div>

Hi, recently I foolish man, I wanted to remove wine along with all the dependencies. I did it so effectively that it even took the kernel and half the system. I install new system the keeping my home directory, and then wanted to use timeshift to recover everything from the snapshot. Unfortunately it didn’t work, the system was corrupted. Wanting to avoid setting up everything from scratch for the future, what user folders, should be backed up, no big programs, but basic desktop settings, etc.

---

<div class="post-metadata">

**Author:** ![keybreak](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/keybreak/32/9257_2.png) [@keybreak](https://forum.endeavouros.com/u/keybreak)\
**Post date:** [January 10, 2023, 10:02am UTC](https://forum.endeavouros.com/t/not-wise-conduct-ends-like-this/35831/2 "2023-01-10T10:02:09Z")

</div>

> [@matadrox](#):
>
> I did it so effectively that it even took the kernel and half the system.

What the hell of a command have you issued to do that? 🤣

---

<div class="post-metadata">

**Author:** ![matadrox](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/m/5f9b8f/32.png) [@matadrox](https://forum.endeavouros.com/u/matadrox)\
**Post date:** [January 10, 2023, 10:06am UTC](https://forum.endeavouros.com/t/not-wise-conduct-ends-like-this/35831/3 "2023-01-10T10:06:45Z")

</div>

sudo pacman -Rsc wine-staging giflib lib32-giflib libpng lib32-libpng libldap lib32-libldap gnutls lib32-gnutls   
mpg123 lib32-mpg123 openal lib32-openal v4l-utils lib32-v4l-utils libpulse lib32-libpulse libgpg-error   
lib32-libgpg-error alsa-plugins lib32-alsa-plugins alsa-lib lib32-alsa-lib libjpeg-turbo lib32-libjpeg-turbo   
sqlite lib32-sqlite libxcomposite lib32-libxcomposite libxinerama lib32-libgcrypt libgcrypt lib32-libxinerama   
ncurses lib32-ncurses opencl-icd-loader lib32-opencl-icd-loader libxslt lib32-libxslt libva lib32-libva gtk3   
lib32-gtk3 gst-plugins-base-libs lib32-gst-plugins-base-libs vulkan-icd-loader lib32-vulkan-icd-loader  
Just like that’s 😆

---

<div class="post-metadata">

**Author:** ![keybreak](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/keybreak/32/9257_2.png) [@keybreak](https://forum.endeavouros.com/u/keybreak)\
**Post date:** [January 10, 2023, 10:08am UTC](https://forum.endeavouros.com/t/not-wise-conduct-ends-like-this/35831/4 "2023-01-10T10:08:29Z")

</div>

That’s what i thought - grave danger of a command, it should not be used.

> REMOVE OPTIONS (APPLY TO -R)  
> -c, --cascade  
> Remove all target packages, **as well as all packages that depend on one or more target packages**. This operation is recursive and must be used with care, since it can remove many potentially needed packages.

* * *

What you wanted to do was that:

```bash
sudo pacman -Rns wine-staging

```

> -s, --recursive  
> Remove each target specified including all of their dependencies, provided that (A) they are not required by other packages; and (B) they were not explicitly installed by the user. This operation is recursive and analogous to a backwards --sync operation, and it helps keep a clean system without orphans. If you want to omit condition (B), pass this option twice.
> 
> -n, --nosave  
> Instructs pacman to ignore file backup designations. Normally, when a file is removed from the system, the database is checked to see if the file should be renamed with a .pacsave extension.

And of course **ALWAYS** carefully check which packages it actually removes…if there’s a kernel - you must be doing something wrong 🤣

---

<div class="post-metadata">

**Author:** ![matadrox](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/m/5f9b8f/32.png) [@matadrox](https://forum.endeavouros.com/u/matadrox)\
**Post date:** [January 10, 2023, 10:11am UTC](https://forum.endeavouros.com/t/not-wise-conduct-ends-like-this/35831/5 "2023-01-10T10:11:16Z")

</div>

I.e. I don’t know if the Kernel was removed, but I got info to press any key and the system froze.  
I acted idiotically, because the listed package names once a colleague gave me so that all wine works well. And in the same way we thought to get rid of them. I was not wrong 😆🙃

---

<div class="post-metadata">

**Author:** ![keybreak](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/keybreak/32/9257_2.png) [@keybreak](https://forum.endeavouros.com/u/keybreak)\
**Post date:** [January 10, 2023, 10:14am UTC](https://forum.endeavouros.com/t/not-wise-conduct-ends-like-this/35831/6 "2023-01-10T10:14:42Z")

</div>

Well…You live - you learn, don’t make same mistake twice!

![honka_animated-128px-48](https://forum.endeavouros.com/uploads/default/original/3X/0/a/0ade3597625b7891716927fa02eb613485a56c01.gif)

---

<div class="post-metadata">

**Author:** ![matadrox](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/m/5f9b8f/32.png) [@matadrox](https://forum.endeavouros.com/u/matadrox)\
**Post date:** [January 10, 2023, 10:17am UTC](https://forum.endeavouros.com/t/not-wise-conduct-ends-like-this/35831/7 "2023-01-10T10:17:10Z")

</div>

Now i very careful read all about Pacman. I know I should have to do a long time ago, not underestimating the package manager, which I did not appreciate

---

<div class="post-metadata">

**Author:** ![keybreak](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/keybreak/32/9257_2.png) [@keybreak](https://forum.endeavouros.com/u/keybreak)\
**Post date:** [January 10, 2023, 10:19am UTC](https://forum.endeavouros.com/t/not-wise-conduct-ends-like-this/35831/8 "2023-01-10T10:19:24Z")

</div>

Yeah…The possibilities of not wise things are endless in Linux 🤣

> [@Newb move aka shadow remove](https://forum.endeavouros.com/t/newb-move-aka-shadow-remove/7071):
>
> Not that i’m newb or anything, but… Let’s just say i’ve done something terrible: sudo rm -rf /etc/shadowghost Don’t ask! rofl Obviously only TTY now. Is there a way out of it?

![honka_animated-128px-14](https://forum.endeavouros.com/uploads/default/original/3X/7/f/7f4c77855c46992b42e8b60007a176fb29a0cbce.gif)

---

<div class="post-metadata">

**Author:** ![matadrox](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/m/5f9b8f/32.png) [@matadrox](https://forum.endeavouros.com/u/matadrox)\
**Post date:** [January 10, 2023, 10:22am UTC](https://forum.endeavouros.com/t/not-wise-conduct-ends-like-this/35831/9 "2023-01-10T10:22:01Z")

</div>

So I must to learn all the time. But that’s the beauty of Linux! I love that!

---

<div class="post-metadata">

**Author:** ![keybreak](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/keybreak/32/9257_2.png) [@keybreak](https://forum.endeavouros.com/u/keybreak)\
**Post date:** [January 10, 2023, 10:27am UTC](https://forum.endeavouros.com/t/not-wise-conduct-ends-like-this/35831/10 "2023-01-10T10:27:52Z")

</div>

Indeed, and as long as first thing you learn is always make a full backup of important data - it’s gonna be totally fine!

![honka_animated-128px-46](https://forum.endeavouros.com/uploads/default/original/3X/6/e/6ec70ef6c3a3daed535ee074a8ce586ae940896e.gif)

---

<div class="post-metadata">

**Author:** ![matadrox](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/m/5f9b8f/32.png) [@matadrox](https://forum.endeavouros.com/u/matadrox)\
**Post date:** [January 10, 2023, 10:37am UTC](https://forum.endeavouros.com/t/not-wise-conduct-ends-like-this/35831/11 "2023-01-10T10:37:37Z")

</div>

Yes only I need to know exactly what locations, because he does not want to archive all programs, but only the settings that usually take the most time.

---

<div class="post-metadata">

**Author:** ![pebcak](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/pebcak/32/100472_2.png) [@pebcak](https://forum.endeavouros.com/u/pebcak)\
**Post date:** [January 10, 2023, 10:43am UTC](https://forum.endeavouros.com/t/not-wise-conduct-ends-like-this/35831/12 "2023-01-10T10:43:35Z")

</div>

Apart from the personal data in home directory, personally, I would backup:

the dot files and dot folders under home directory  
/etc

I would then restore what I need from these on a per case basis.

Edit: you could also make a package list of all the packages explicitly installed and reinstall them all at once:

👁 2.5-2.6 [https://wiki.archlinux.org/title/Pacman/Tips\_and\_tricks#List\_of\_installed\_packages](https://wiki.archlinux.org/title/Pacman/Tips_and_tricks#List_of_installed_packages)

---

<div class="post-metadata">

**Author:** ![matadrox](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/m/5f9b8f/32.png) [@matadrox](https://forum.endeavouros.com/u/matadrox)\
**Post date:** [January 10, 2023, 10:50am UTC](https://forum.endeavouros.com/t/not-wise-conduct-ends-like-this/35831/13 "2023-01-10T10:50:20Z")

</div>

Pacman is a great tool! I knew I shouldn’t underestimate it. Thank’s you Guys!

---

<div class="post-metadata">

**Author:** ![ricklinux](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/ricklinux/32/110798_2.png) [@ricklinux](https://forum.endeavouros.com/u/ricklinux)\
**Post date:** [January 11, 2023, 11:31pm UTC](https://forum.endeavouros.com/t/not-wise-conduct-ends-like-this/35831/14 "2023-01-11T23:31:31Z")

</div>

I just want my kernel back. 😁

---

<div class="post-metadata">

**Author:** ![system](https://forum.endeavouros.com/uploads/default/original/2X/9/9ea52f9fd5ef8e609e593c362d61a36295f48be8.png) [@system](https://forum.endeavouros.com/u/system)\
**Post date:** [January 13, 2023, 11:32pm UTC](https://forum.endeavouros.com/t/not-wise-conduct-ends-like-this/35831/15 "2023-01-13T23:32:07Z")

</div>

Closed on January 13, 2023, 11:32pm UTC

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
