LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-03-2020, 09:27 AM   #1
mackowiakp
Member
 
Registered: Jun 2014
Location: Poland/Gdynia
Distribution: Mageia 9, SH4, Debian
Posts: 367

Rep: Reputation: 8
Upgrade Alpine Linux without upgrading certain packages


I have "NextCloud" installed in the docker. Docker (downloaded from GitHub) is based on Alpine Linux. As you know, Linux used in docker is not complete. I'd like to do automatic update/upgrade from cron. However, I would not like the upgrade to be performed on NextCloud packages, because I intend to use (for various reasons) a tool built into Nextcloud itself for this purpose.
However, the "apk" command doesn't have the "--exclude" option. So how can I upgrade the system without doing it on all "nextcloud*" packages?
 
Old 11-04-2020, 01:28 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
AFAIU Alpine is a rolling release distro, which means that full upgrades are highly recommended, if not mandatory.
Be that as it may, I'm sure the Alpine Wiki can tell you how apk can be configured, and what other apk-tools exist besides the "apk" utility.
 
Old 11-04-2020, 02:12 AM   #3
mackowiakp
Member
 
Registered: Jun 2014
Location: Poland/Gdynia
Distribution: Mageia 9, SH4, Debian
Posts: 367

Original Poster
Rep: Reputation: 8
Alpine WIKI stands:

Quote:
The apk tool supports the following operations:
add Add new packages or upgrade packages to the running system
del Delete packages from the running system
fix Attempt to repair or upgrade an installed package
update Update the index of available packages
info Prints information about installed or available packages
search Search for packages or descriptions with wildcard patterns
upgrade Upgrade the currently installed packages
cache Maintenance operations for locally cached package repository
version Compare version differences between installed and available packages
index create a repository index from a list of packages
fetch download (but not install) packages
audit List changes to the file system from pristine package install state
verify Verify a package signature
dot Create a graphviz graph description for a given package
policy Display the repository that updates a given package, plus repositories that also offer the package
stats Display statistics, including number of packages installed and available, number of directories and files, etc.
manifest Display checksums for files contained in a given package
No "exclude" option or similar possibility. Lets take "apt". It is possible exclude packages from upgrade, but not in "apk".
So any replacement is possible? Any script or so...
 
Old 11-05-2020, 12:16 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
SMH
This is how you get to know your tools:
  1. check what executables belong to the various package management tools installed on your system.
  2. while you're at it (list installed files of any given package) you can probably also see what sort of documentation is installed
Read those fruity man pages.
Hint: often configuration files also have their own man pages.
 
  


Reply

Tags
alpine, apk, upgrade



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CUPS (ALPINE) - CUPS claiming print job completed despite printing nothing, How to debug the issue? (network printer, Alpine, Linux, Docker) vinnu543 Linux - Newbie 2 11-01-2018 03:18 PM
CUPS (ALPINE) - CUPS claiming print job completed despite printing nothing, How to debug the issue? (network printer, Alpine, Linux, Docker) vinnu543 Linux - Networking 1 11-01-2018 03:13 AM
LXer: News: Linux Top 3: Alpine Linux 3.4, deepin 15.2 and Linux Lite 3.0 LXer Syndicated Linux News 0 06-07-2016 02:20 AM
apt question: exclude certain packages from upgrading? ice99 Linux - Software 1 09-21-2005 09:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:22 AM.

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