LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-21-2021, 08:00 AM   #1
serafean
Member
 
Registered: Mar 2006
Location: Czech Republic
Distribution: Gentoo, Chakra
Posts: 990
Blog Entries: 15

Rep: Reputation: 135Reputation: 135
Managing updates


Hi,

I'm wondering about how to manage updates in a world with a zillion language package managers, containers and other weird stuff managing itself.

Once upon a time I learned to use package managers. Either of
Code:
# apt-get upgrade
# emerge -uDNav world
and I knew that the system is up to date, security fixes applied after service restart.
Now I install, for instance, HomeAssistant, and suddenly I have a separate python tree in /etc/homeassistant which gets updated at the whim of homeassistant. Other python VENV stuff is somewhere too...
Firefox has all its stuff statically linked through rust's cargo.
perl has its CPAN.
And into this comes docker, which is a world to update on its own.

All this is becoming a complete mess, and I'd like to hear how other people running a multipurpose (snowflake) server (or a desktop) deal with this.
 
Old 07-21-2021, 10:50 AM   #2
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 5,790

Rep: Reputation: 2153Reputation: 2153Reputation: 2153Reputation: 2153Reputation: 2153Reputation: 2153Reputation: 2153Reputation: 2153Reputation: 2153Reputation: 2153Reputation: 2153
I think the solution, which may not be popular with some, is to stick to the traditional way of doing things and the use of repositories. The only thing on this (PCLinuxOS) computer that's not handled by apt-get is OpenOffice — even Firefox doesn't update itself.
 
Old 07-21-2021, 11:20 AM   #3
A-Okay
LQ Newbie
 
Registered: Mar 2021
Posts: 14

Rep: Reputation: Disabled
I don't know if this is of any help to you but this is how I do my updates.

cat > /usr/bin/update

#!/bin/bash
sudo apt-get update;
sudo apt-get upgrade -y;
sudo apt-get dist-upgrade -y;
sudo apt autoremove -y;
sudo apt autoclean -y;
sudo updatedb;
sleep 3;
exit

and if I'd like to log the update process, I do:
update > /tmp/updatelog.txt

If needed, do a reboot:
reboot
 
Old 07-22-2021, 03:54 AM   #4
serafean
Member
 
Registered: Mar 2006
Location: Czech Republic
Distribution: Gentoo, Chakra
Posts: 990

Original Poster
Blog Entries: 15

Rep: Reputation: 135Reputation: 135
Quote:
I think the solution, which may not be popular with some, is to stick to the traditional way of doing things and the use of repositories
I tend to agree, but having been forced* to use docker (deconz) and pip (HomeAssistant), I was left wondering whether I'm missing something, or the mess is as big it seems...
At one point a was very hopeful about paludis, that it could incorporate also language package managers. But when they discovered that ruby had a non-compliant yaml implementation for their repo, that went down the drain...

*forced by not checking details before I got a ZigBee Conbee II for my HA play things.

Quote:
I don't know if this is of any help to you but this is how I do my updates.
I don't see how this takes into account language specific repositories and other update side channels.
 
Old 07-22-2021, 11:27 AM   #5
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 2,411

Rep: Reputation: Disabled
Well, Linux distributions are trying to cope with this situation. E.g., see Automatic Packaging Tools @DebianWiki. Most of the tools mentioned there have their equivalent counterparts in RPM-based distributions as well: cpantorpm, cabal-rpm, pyp2rpm, gem2rpm, go2rpm, and so on.

In my experience, they don't solve the problem completely, but at least alleviate it a bit. I mean not the problem of managing updates from language-specific repositories: none of the said tools is capable of this, but the problem of generating distribution-specific packages for them in semi-automatic manner.

Last edited by shruggy; 07-22-2021 at 11:39 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] apt/dpkg - managing large updates boughtonp Debian 6 07-23-2020 04:45 AM
Strategies for managing very frequent Fedora package updates? penyuan Fedora 5 08-23-2014 03:06 AM
LXer: Updates, Beautiful Updates LXer Syndicated Linux News 0 01-28-2008 04:20 PM
yum check-update says no updates when there are updates? MarkEHansen Linux - General 7 12-29-2006 05:16 PM
Managing security updates and upgrades arobinson74 Slackware 8 10-19-2004 07:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration