Re: package managers problem
<tomas@tuxteam.de> writes:
> [[PGP Signed Part:Undecided]]
> On Tue, Jun 20, 2023 at 04:06:23AM -0400, Charles Kroeger wrote:
>> > As far as I know, apt is pretty much apt-get
>>
>> If you're using Debian 12 then the -get is gone.
>
> No, it's still there, whenever you need it :)
>
> Cheers
IIUC "apt" is a replacement for end-user that combines most of the
functions in "apt-get" and "apt-cache". On the other hand, the output
of "apt-get" and "apt-cache" are considered stable and can be used for
scripting that parse their output, meanwhile apt may introduce
backward-incompatible output changes. You'll get a warning if you use
"apt" in a script. See also "man apt":
,----
| SCRIPT USAGE AND DIFFERENCES FROM OTHER APT TOOLS
| The apt(8) commandline is designed as an end-user tool and it may
| change behavior between versions. While it tries not to break
| backward compatibility this is not guaranteed either if a change
| seems beneficial for interactive use.
|
| All features of apt(8) are available in dedicated APT tools like
| apt-get(8) and apt-cache(8) as well. apt(8) just changes the
| default value of some options (see apt.conf(5) and specifically
| the Binary scope). So you should prefer using these commands
| (potentially with some additional options enabled) in your
| scripts as they keep backward compatibility as much as possible.
`----
--
Manphiz
Reply to: