Score:0

Do manually installed programs/packages get updates automatically?

cn flag

I downloaded android studio as a .tar.gz into home directory on ubuntu 20.04 and then I discovered that downloaded software is conventionally put in /opt directory. So now if I cut/paste the whole directory than contains the android studio files into /opt will it automatically get updates when I run sudo apt-get update && sudo apt-get upgrade?

The question also applies to any package installed outside of snap and apt

Knud Larsen avatar
by flag
`sudo apt-get upgrade` works for packages.deb installed with `apt, dpkg, gdebi` only. .... Manually installed files are unknown to the "package data base".
user535733 avatar
cn flag
`apt-get` is not magical. It cannot know how to upgrade random cut/paste software that was never part of a deb package.
Haidar avatar
cn flag
@user535733 I thougt that it(snap) searches for packages in specific folder like /opt and there it searches for updates for all that packages as it will think that everything there is installed by it
user535733 avatar
cn flag
No, because a .tar.gz file *is not a package*. It's just a random file. Snapd is also not magical -- it does not know where random files come from. It only knows where snap-packaged files come from.
Haidar avatar
cn flag
@user535733 you are saying things on my behalf, I am not a linux pro but also not that stupid :) when I say android studio folder how did you understand that I mean that I copied the compressed file? I meant I copied the extracted folder which is btw the same folder that will be installed by apt-get or snap, that's why I thought snap or apt will search for any package's folder with a specific hierarchy and update that package
Score:4
cn flag

No. apt-get upgrade only updates packages that were installed through apt.

Haidar avatar
cn flag
Then when android studio (or any other app for example) at their official website download their app as a tar.gz package how do they expect me to update it? Should I just check each app installed this way manually at their website if there is a newer version?
user535733 avatar
cn flag
@HaidarMehsen, if you install it manually, then you are expected to update it manually. One of the conveniences of using software *packages* (like debs) is a package manager (like apt) than can handle routine maintenance (like updates) for you.
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.