Hello,
it would be useful to be able to install packages directly from the console without having to go through "required packages."
In other words, to install a package from the console as if you were using `wapt-get install package` in a command prompt.
This would allow for two types of installations: on-the-fly packages that can be installed and uninstalled, and required packages that can only be installed and uninstalled by going through "required and prohibited packages."
Please let me know if I'm not being clear.
On-the-fly package installation
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
- sfonteneau
- WAPT Expert
- Messages: 2318
- Registered: July 10, 2014 - 11:52 PM
- Contact :
It's possible
, but I clearly don't understand...
If you launch an installation of a package via "required packages" in the console, then run the installation, and then once it's finished, you remove the package from "required packages," well, that does exactly the same thing as a `wapt-get install`.
Basically, the software doesn't appear in the machine package list.
- Simon
, but I clearly don't understand...
If you launch an installation of a package via "required packages" in the console, then run the installation, and then once it's finished, you remove the package from "required packages," well, that does exactly the same thing as a `wapt-get install`.
Basically, the software doesn't appear in the machine package list.
- Simon
Currently, when you install a package via the console, you're forced to do it through "Required Packages." If you remove the package from "Required Packages," it isn't uninstalled; it's just marked as no longer required on the machine. You have to move it to "Forbidden Packages" to uninstall it.
But with the `wapt-get install` command run from a client machine, the package is simply installed; it doesn't appear in "Required Packages." Therefore, you can uninstall it without having to perform a second step, which is to move it to "Forbidden Packages" or remove it from "Required Packages" if you uninstall it via the console. This is the method I'd like to implement from the console.
So we would have two installation methods: the first, which I call "on-the-fly," simply installs the package like with `wap-get install` but from the console; and the second method installs the package via "required packages" as mandatory packages. If we use `wap-get remove` to uninstall the package, it is removed, but the console displays a "missing packages" error because it is still listed in "required packages."
But with the `wapt-get install` command run from a client machine, the package is simply installed; it doesn't appear in "Required Packages." Therefore, you can uninstall it without having to perform a second step, which is to move it to "Forbidden Packages" or remove it from "Required Packages" if you uninstall it via the console. This is the method I'd like to implement from the console.
So we would have two installation methods: the first, which I call "on-the-fly," simply installs the package like with `wap-get install` but from the console; and the second method installs the package via "required packages" as mandatory packages. If we use `wap-get remove` to uninstall the package, it is removed, but the console displays a "missing packages" error because it is still listed in "required packages."
- sfonteneau
- WAPT Expert
- Messages: 2318
- Registered: July 10, 2014 - 11:52 PM
- Contact :
Or, when you click on the machine, you'll see a list of packages on the right. You can right-click on the package you want to uninstall, and then click on uninstallJacki wrote:Actually, currently when you install a package via the console, you have to do it via "required packages". If you remove the package from "required packages", the package is not uninstalled, it is just marked as no longer required on the machine. You have to put it in "forbidden packages" for it to be uninstalled.
So that's what I was saying, you add the package to the list of required packages (with add a package or package group), you launch the installation, once you get confirmation that everything worked, you use (Remove package dependencies or package groups).Jacki wrote: But with the `wapt-get install` command run from a client machine, the package is simply installed; it's not listed in the required packages. Therefore, it can be uninstalled without having to perform a second step, which is to add it to the "forbidden packages" list or remove it from the required packages list if uninstalling via the console. This is the method I would like to use from the console.
And there you go, your package is no longer listed as "required package" but is still installed on the machine, just like when you launch it with `wapt-get install`
Only the host package will want to update
The method described above works well and you won't have this problem.Jacki wrote: So we would have two installation methods: what I call "on-the-fly" installation, which simply installs the package like with `wap-get install` but from the console, and the second method, which installs the package via "required packages" as mandatory packages. If we do a `wap-get remove` of the package, it is uninstalled, but on the console we get a "missing packages" error because it is still listed in "required packages".
However, this obviously requires that the PCs be switched on.
The package is uninstalled correctly, but as I said above, the package remains in "required packages" and therefore in the view it shows as missing, so I have to do a 2nd step by removing it from "required packages".Or, when you click on the machine, you'll see a list of packages on the right. You can right-click on the package you want to uninstall, and then click on uninstall
The installation works, but the uninstallation doesn't, because it tells me "There is no package group." This method only seems to work if you use package groups and not individual packages like for the installation, but I'm not using package groups.So that's what I was saying, you add the package to the list of required packages (with add a package or package group), you launch the installation, once you get the feedback that everything worked, you use (Remove package dependencies or package groups).
What I mean is, is it possible to install packages from the console without them ending up in "Required Packages," but simply installing them, like `wapt-get install` does, and similarly for uninstalling them with `wapt-get remove`?
- sfonteneau
- WAPT Expert
- Messages: 2318
- Registered: July 10, 2014 - 11:52 PM
- Contact :
Yes, he will be found temporarily in necessary packages, but will be removed when you use Remove package dependencies or package groups Only the Host package will be updated.Jacki wrote:The package is uninstalled correctly, but as I said above, the package remains in "required packages" and therefore in the view it shows as missing, so I have to do a 2nd step by removing it from "required packages".Or, when you click on the machine, you'll see a list of packages on the right. You can right-click on the package you want to uninstall, and then click on uninstall
The installation works, but the uninstallation doesn't, because it tells me "There is no package group." This method only seems to work if you use package groups and not individual packages like for the installation, but I'm not using package groups.So that's what I was saying, you add the package to the list of required packages (with add a package or package group), you launch the installation, once you get the feedback that everything worked, you use (Remove package dependencies or package groups).
What I mean is, is it possible to install packages from the console without them ending up in "Required Packages," but simply installing them, like `wapt-get install` does, and similarly for uninstalling them with `wapt-get remove`?
Otherwise, yes, it should be possible, but I don't think it's integrated into the console. The corresponding line in the GitHub repository is this one:
https://github.com/tranquilit/WAPT/blob...r.py#L1038
In development, the console should allow users to click on a package and then select the machines to which they want to send the install command
It's doable
Simon
