Page 1 of 1
On-the-fly package installation
Published: May 24, 2016 - 4:17 PM
by Jacki
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.
Re: On-the-fly package installation
Published: May 24, 2016 - 4:58 PM
by sfonteneau
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
Re: On-the-fly package installation
Published: May 24, 2016 - 5:38 PM
by Jacki
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."
Re: On-the-fly package installation
Published: May 24, 2016 - 8:17 PM
by sfonteneau
Jacki 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.
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
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.
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).
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
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".
The method described above works well and you won't have this problem.
However, this obviously requires that the PCs be switched on.
Re: On-the-fly package installation
Published: May 25, 2016 - 09:53
by Jacki
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 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".
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).
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.
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`?
Re: On-the-fly package installation
Published: May 25, 2016 - 10:53
by sfonteneau
Jacki wrote:
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 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".
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).
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.
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`?
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.
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