Reopen request:
Yes, this is marked as duplicate.
** What I am asking is a shell script that can help me achieve updating packages with .deb
and .tar.gz
, but NOT how .deb
will affect apt-get update
, and NOT just manually compile the .tar.gz
and manually update the package.
As I've mentioned before:
This one queries the adding of PPA in /etc/apt/sources.list.d/
, which is not what I wanted, because I said there is no PPA available already. Also, I don't like using other PPAs, I prefer a script that is viewable and editable by me at any time I want.
This one shows no sign of (even) automatically downloading the .tar.gz
packages. Also, what it talks about is manually updating source code packages, but what I want is a custom script that I can automatically download the source code, compile it and also automatically install it.
For some more information, I already know the existence of Arch Linux's AUR, and according to this post which previously also flagged suggested duplicate, it is saying that an equivalent to Arch Linux's AUR is Ubuntu's PPA, which is not what I wanted.
I am now requesting to reopen this question. Please, and please understand what I want, not just marking some topics I don't need, and then say "This is a duplicate question".
Also check out the meta thread regarding this question on this.
Question:
I know that we can automatically update packages using apt
or apt-get
if they are installed via PPA.
However, recently I found out that a package I installed, which is downloaded from the Internet in .deb
format, is seriously outdated. There is no offical or unoffical PPA available for that program.
Also, another program that I complied long ago (also downloaded from the Internet, .tar.gz
format) is also outdated.
Is it possible to have a shell script that can automatically check for updates online, download the .deb
and .tar.gz
packages, automatically compile it, and install it in Ubuntu?
For reference only:
Preferred:
wget
,make
, crontabI understand the risk of using such scripts (risk of malicious downloads), I can personally bear it because I know how to remove infections when the system got infected by viruses.
If anyone want me to specify a package I want to update, please use WPS Office and MultiBootUSB (it's
.tar.gz
package).
.deb
file, and I want the script to automatically check for updates, download it and install it. – Cynplytholowazy Sep 20 '17 at 05:54wget -qO- http://wps-community.org/downloads | pup "a:contains(\"$(dpkg-architecture -q DEB_HOST_ARCH)\") attr{href}" | head -n1
to get the latest deb file's URL, then download it and useapt install
; but obviously that depends on the site structure and may or may not be generalisable to other software sites. – muru Sep 20 '17 at 06:22.deb
s? muru already suggested a comment that may solve the problem, and if question are not 1:1 identical and a "no" can be given to answers, then why not open a thread with an answer "no" and then direct all posts like this to the thread? – Cynplytholowazy Sep 20 '17 at 08:49