Rolling Back an Update


 
Thread Tools Search this Thread
Operating Systems Linux Rolling Back an Update
# 8  
Old 05-03-2012
Actually, I cannot. My software will wake up on numerous varied systems of unknown configuration.

You are very knowledgeable (as always) and are confirming my fear that no one has solved this problem for any major Linux family. I suspect that the reason that this is possible in the Windows world is that uninstall scripts are somehow created.

Given enough time, I, or any competent programmer, could create a system, but if no one has created a facility for it, I will not have that kind of time to spend to implement just this one feature.

I had hoped that at least one or two of the major distribution families had some facility for doing this, but if an installation runs various scripts, I guess it cannot be automatic unless that also run an unistall script.

This leaves me wondering what to tell customers who complain that updating ruined their system.
# 9  
Old 05-03-2012
It is not untenable. All you have to do is make the script take input and save the selections somewhere.

If the chosen destination is /opt/yoursoftware/version

you can easily create an /opt/yoursoftware/latest that is a link to the version installed.

Windows does not have the major advantage here. Sure you can play games with the registry, but *nix has been more flexible for decades. Nobody is suggesting you build an alternative to deb or rpm files, but you don't have to use them at all, and it makes it even simpler for dealing with any ELF compatible UNIX.

you have a tgz file, and then it explodes into a directory. That then has an install.sh and perhaps an uninstall.sh and perhaps an upgrade.sh script inside.
They do the right thing, and create backups, and the version management and voila.

If you run uninstall.sh, it then asks if you want to save your current version. If so, you can easily archive it off, because /opt/yoursoftware/latest points to the one they just installed.

This is the way *nix works.
# 10  
Old 05-04-2012
Linux, and UNIX in general, are very "unmagical". Get the bootloader running, put the right files in the right places with the right permissions, and it should do what it's told. I've replicated entire linux systems with nothing but fdisk, mkfs, tar, and grub-install -- that is, replicated a system at the file-level, not the disk-level, and had it operate perfectly.

The UNIX philosophy is also "a program should do one thing and do it well". Your installer is your installer; your backup system is your backup system. Why would there be a special restore for applications alone when you can cover the whole system the same way? When everything is a file, you can roll back an installation by simply rolling back files. This makes recovering from installs simply a manner of keeping proper backups.

Windows on the other hand really needs it due to design decisions. Backing up files is not enough. Its opaque, always-live, and heavily centralized registry system means you can get all the right files in the right places but unless you capture the registry values at the exact right instant, it may be all for naught, and need an installer that doesn't just install and uninstall, but also keeps its own backups, does scanning and repair, and other such maintenance. Each application needs its own installer to do this, though a lot use one made from a template. And it still breaks down far too often because of how Windows has divorced its configuration from its filesystem.

Last edited by Corona688; 05-04-2012 at 04:15 AM..
# 11  
Old 05-04-2012
Studying these great responses. I don't have the freedom to mandate tgz. My job is to inform users of all available updates for installed packages. I have to take them as I find them.
# 12  
Old 05-04-2012
How do you not have the ability to tell customers how your software is installed?
# 13  
Old 05-04-2012
I do have the ability to tell them how my software is installed.

I don't have the ability to tell them how updates for every other package on their system created by some random source should be updated, which is what I am discussing. Some packages may not be offered in tgz format, and when my software installs available updates for their other software by calling yum, apt-get, zypper, etc., those utilities will default to packages of type .rpm, .deb, etc.
# 14  
Old 05-04-2012
Coming from a UNIX engineering perspective:

If your software ever tried to update other packages in this way, I would uninstall it, create an incident, and bring my legal team together to get you sued out of existence.

You handle YOUR software. You manage your own paths, and bring your own stuff to the party. If you update components on another person's system, you risk breaking it, and costing them a tremendous amount of money and pain.

That will translate into YOUR pain. Don't do it.

Manage your software, not theirs.


What you should do, is follow current best practices:

Create an installer that VERIFIES the minimum versions of software as provided by the OS. You can do that with apt, rpm, yum, whatever. When your vetting is done, you then issue message to the console, or via a log, etc that the system has been verified and may continue, and the installer continues, or that they are missing the per-requisites, and list them. By NO means should you go and get them. That is asking for trouble. You are a vendor, not a systems administrator.

Last edited by mark54g; 05-04-2012 at 02:42 PM.. Reason: additional info
These 2 Users Gave Thanks to mark54g For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. What is on Your Mind?

SEO Update: Back On Page 1 for Google SERPs (between #6 and #8)

Well, good news... Just checked a number of browsers set to the US region of Google , NCR https://www.google.com/ncr unix.com was back on the first page, between #6 and #8. Will be interesting to see if we can make it back to our highest #4 ranking in 2019. Google Webmaster Tools... (4 Replies)
Discussion started by: Neo
4 Replies

2. UNIX for Dummies Questions & Answers

Middled Rolling average

Dear Help, The input file is below --- 13 2238422.00000 101083.00000 0.89024 0.00416 0.00467 14 2238318.00000 101090.00000 0.89100 0.00416 0.00467 15 2238209.00000 101100.00000 0.90964 0.00424 0.00466 16 2238104.00000 101104.00000 0.97568 0.00463 0.00475 17 2237991.00000 101113.00000... (8 Replies)
Discussion started by: Indra2011
8 Replies

3. UNIX for Dummies Questions & Answers

Rolling back SQL transaction

Can some one help me related to .sql file issue. I have a .sqlfile and tried to read the file thru unix. In the .sqlfile I have error rows as well and when error comes I dont want to proceed further and need to roll back all the transactions. sample .sql file below insert into test... (2 Replies)
Discussion started by: sri_aue
2 Replies

4. AIX

rolling back Technology Level

Hi, is it possible to roll back currently updated Technology level ? what are steps required? Regards, Manoj (2 Replies)
Discussion started by: manoj.solaris
2 Replies

5. IP Networking

Back-to-Back Connection using HBAs

Hi every body, Is it possible to connect two servers Back-to-Back (Point-to-Point) using HBA adapters & using Fiber. Note it is direct connection & there is no switches between the servers. I'm concern about using HBA adapters, it is possible or not. Thanks in advance. :) (3 Replies)
Discussion started by: aldowsary
3 Replies

6. Shell Programming and Scripting

log rolling

Hi, I'm thinking of running a script via cron (every hour) to do the log rolling. The file is "file.txt" and there going to be 10 files rolling (file.txt.n). The file is being written constantly by an application. The script will do the following: 1. cat file.txt > file.txt.0 2. cat... (0 Replies)
Discussion started by: chaandana
0 Replies

7. AIX

back to back printing in UNIX

Hi , Can you suggest me how to back to back printing in UNIX? Is there any way? Kindly advise. Regards Vijaya Amirtha Raj (3 Replies)
Discussion started by: amirthraj_12
3 Replies

8. UNIX for Dummies Questions & Answers

Rolling back time

Hi all, Have a small problem. Back in October the pervious sys-admin (of a client's company) made the necessary adjustments to the system clock for daylight savings (Sydney time - +11 GMT). As far as I can gather, they just amended the time - NO TIMEZONE !?! Is there an effective and safe... (5 Replies)
Discussion started by: Cameron
5 Replies
Login or Register to Ask a Question