Score:0

How update a package that was installed through the dpkg command?

kz flag

About the dpkg command, for a first installation of a package is executed the following command:

sudo dpkg -i filename-v1.deb

Observe it is version 1. Until here I am ok.

But if is available a new release for the same package.

Question

  • How update the current installed package through the same dpkg command?

What is the specific option? Through the man dpkg I couldn't find an option such as -u or --update - or would be mandatory execute the sudo dpkg -i filename-v2.deb? Observe it is now version 2. I am assuming dpkg handles the internal update behind the scenes.

Note

Normally I use the apt command - but for some tools the dpkg command is used for installation. So I have this doubt about how is updated a package that was installed through the dpkg command itself.

ar flag
the command `sudo dpkg -i filename-v2.deb` should do the job. It will install version 2 and in the process overwrite the old version. See [a similar question and answer here](https://unix.stackexchange.com/questions/616414/upgrading-updating-package-using-dpkg-only)
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.