remove.md
 1  ## Remove one or more applications
 2  Option `-R` removes the selected apps without asking
 3  ```
 4  am -R {PROGRAM}
 5  ```
 6  
 7  https://github.com/ivan-hc/AM/assets/88724353/4d26d2d7-4476-4322-a0ab-a0a1ec14f751
 8  
 9  
10  To have a prompt, use `-r` or `remove`, lowercased
11  ```
12  am -r {PROGRAM}
13  ```
14  This is possible thanks to the script called `remove` present in the directory of all installed apps, and which is the first file to be created during the installation process.
15  
16  If an app is installed at the system level, in `/opt`, it will be necessary to use the root password to start the script.
17  
18  ## How to update or remove apps manually
19  This section covers some cases where you can manage installed apps via "AM" but without "AM".
20  
21  #### Manually removing a program
22  To remove an application without using "AM", simply run the `remove` script, use root privileges if the app is installed system-wide
23  ```
24  sudo /opt/{PROGRAM}/remove
25  ```
26  or run the script directly if the app is installed unprivileged
27  ```
28  /path/to/unprivileged/directory/{PROGRAM}/remove
29  ```
30  and just as there is a `remove` file, many (not all) installed programs have an `AM-updater` script, which is instead intended to update the installed app.
31  
32  #### Manually Update
33  Since the owner of "AM" is the only one who has write permissions for apps installed in `/opt`, he/she can simply run the script like this
34  ```
35  /opt/{PROGRAM}/AM-updater
36  ```
37  other non-privileged users will have to use root privileges.
38  
39  Non-privileged users can however use AppMan.
40  
41  ------------------------------------------------------------------------
42  
43  | [Back to "Guides and tutorials"](../../README.md#guides-and-tutorials) | [Back to "Main Index"](../../README.md#main-index) | ["Portable Linux Apps"](https://portable-linux-apps.github.io/) | [ "AppMan" ](https://github.com/ivan-hc/AppMan) |
44  | - | - | - | - |
45  
46  ------------------------------------------------------------------------