Driver FixRecommendedSound, Wi-Fi or graphics acting up? Check drivers firstFind missing or outdated drivers fast.Check DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run Scan×
Skip to content
World desk12 min

How to Pin Package Versions and Delay Updates on Linux

Package-update controls differ by Linux distribution. Learn when to use an APT hold or pin, DNF versionlock, or pacman IgnorePkg—and how to inspect or remove each rule.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To stop routine updates to an installed package, use the mechanism for your distribution: apt-mark hold on Debian or Ubuntu, DNF’s versionlock plugin on supported DNF systems, or pacman’s IgnorePkg setting on Arch Linux. APT pinning is different: it changes package-selection priorities rather than simply marking an installed package to stay unchanged.

First identify your distribution and package manager

Linux has no universal command for delaying a package update. The commands below apply to different package-management families, and using one on the wrong system will not create the intended rule.

As an Amazon Associate I earn from qualifying purchases.

  • Debian and Ubuntu: use APT. Ubuntu Server documentation identifies APT as the recommended command-line package tool for Debian packages on Ubuntu.
  • DNF-based systems: use the DNF versionlock plugin, if it is available for your distribution and release.
  • Arch Linux: use pacman’s IgnorePkg configuration or a one-time --ignore option.

If you are unsure which system you are using, check its release information and package-management documentation before running commands. These procedures do not cover every Linux distribution or package manager.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Decide what “delay” means in your case

Before changing configuration, decide whether you need a one-time exception, a rule that keeps one installed package at its current version, or a policy that makes the package manager prefer one version or repository. Those goals are easy to confuse, but they have different consequences.

#1 Best Overall
Sale
TOZO A1 Wireless Earbuds Bluetooth 5.3 Light Weight in Ear Headphones
  • [Ultra-Lightweight Ear Buds Designed for Small Ears] Each earbud weighs only 3.7g and features a compact, ergonomic in-ear design made especially for small ears. Secure, low-profile, and comfortable for workouts, all-day wear or overnight sleeping.The ultra-slim profile sits flush in your ear with no hard edges poking or rubbing, so you can even sleep on your side without discomfort.
  • [Immersive Stereo Sound with TOZO OrigX Technology] TOZO OrigX tuning delivers clear vocals, balanced mids, and natural stereo sound for music, podcasts, and videos.
  • [Long Battery Life for Daily Use] Get up to 7 hours of playtime on a single charge, with up to 32 hours total using the charging case—ideal for workdays, commuting, and extended listening sessions.
  • [Bluetooth 5.3 & Stable Connection] Bluetooth 5.3 provides fast pairing, stable wireless performance, and reduced dropouts as you move around home or office.
  • [Deep Bass with Clear Vocals] High-performance drivers produce punchy bass while keeping vocals clean and detailed for everyday listening.
  • One-time delay: skip a package during one operation and let the next operation evaluate it normally. Pacman’s --ignore option is the clearest example.
  • Persistent hold or lock: record a rule that remains in effect until you remove it. APT holds, DNF versionlocks, and a pacman IgnorePkg entry belong here.
  • Version or repository preference: tell the resolver which candidate should have priority. APT preferences, commonly called pinning, serve this purpose rather than simply freezing an installed package.

Use the narrowest control that solves the problem. A temporary regression workaround should not automatically become a permanent repository policy. In every case, review the complete proposed transaction, including related installations, upgrades, and removals, before accepting it.

Choose a hold, a version lock, or a pin for the job

“Pinning” is often used informally to mean keeping a package from changing, but APT uses the term for a more specific mechanism. Choose based on whether you want to leave an installed package alone, constrain which versions can be selected, or skip an update just once.

Method What it controls How long it applies How to inspect or remove it Important trade-off
APT hold Marks an installed package to remain at its current version and status during ordinary APT operations. Until you remove the hold, subject to explicit overrides. apt-mark showhold; remove with apt-mark unhold. It is not a guarantee against every command or administrator action; apt-get --ignore-hold can disregard holds.
APT preferences (pinning) Assigns priorities to packages or repositories so APT can choose a candidate according to those priorities. While the relevant preferences and repository configuration apply. Review the preferences and package candidate using the documentation for the specific release; no universal preference-file example applies here. Mixing releases can create compatibility problems, and priority choices have consequences beyond one simple hold.
DNF versionlock Constrains the package versions available to DNF transaction operations. Until you delete or clear the lock. dnf versionlock list; remove a rule with dnf versionlock delete or clear documented rules with clear. Plugin packaging and exact command syntax can vary by distribution and release.
pacman IgnorePkg Skips a named package during routine package operations that honor the setting. While the package remains listed in pacman’s configuration. Edit the IgnorePkg entry in /etc/pacman.conf. Arch warns that partial upgrades are unsupported; ignoring a package can leave it behind while the rest of the system changes.

A persistent rule should be documented locally so another administrator knows why it exists and when to revisit it. Keep the package name, the reason for the delay, and the condition for removal in your normal change notes. The package managers themselves do not establish a universal maximum safe delay.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Debian and Ubuntu: hold an installed package

Use an APT hold when your goal is straightforward: keep an installed package at its current state during ordinary APT operations. Debian’s package-management documentation describes a hold as the user’s request to keep a package at its current version and status.

Set and verify the hold

  1. Hold the package: replace package_name with the package’s actual APT name, then run sudo apt-mark hold package_name.
  2. Confirm that APT records it: run apt-mark showhold. Check that the package appears in the output.
  3. Review future transactions: when installing or upgrading other software, read APT’s proposed changes before confirming. Do not assume that a hold makes every package operation behave identically.

The hold does not uninstall the package or select a different version. It records a request to keep the installed package unchanged. If the reason for the hold is a regression, treat it as a temporary exception: revisit it when a corrected update is available rather than leaving the package unattended indefinitely.

Remove the hold

When you are ready to allow routine updates again, run sudo apt-mark unhold package_name. Then review the next proposed upgrade to see what APT plans to change; removing a hold does not itself install an update.

Rank #2
Sale
Smart Watch for Men Women Compatible with iPhone Samsung Android Phone 1.69 inch Full Touch Screen IP68 Waterproof Bluetooh Fitness Tracker Heart Rate/Sleep Monitor (Black)
  • 【IP68 Waterproof Multifunctinal Smart Watch】Torjalph fitness activity tracker smart watch is IP68 waterproof technology ,you can wear it when swimming,handwashing,it's rain-proof which means that you perform multiple exercise modes outside without worrying about sweat or rain corroding your fitness smart watch,and this watch equipped with a 230 mAh large capacity battery magnetic charging ,and this sports activity tracker watch can be used 5-7 days If fully charged.
  • 【Larger 1.83'' Full Screen Watch & Multi-dial Selection】1.83 inch full HD color touch screen smart watch for men / women provides excellent 240*284 resolution image quality ,This Bluetooth smart watch offers a better touch experience and remarkable immersion and ,more than 200 watch faces for you to choose from App"Da Fit ", you can change the dial style according to your mood to wear keeping the world on your wrist
  • 【Accurate Activity Tracker Smart Watch 】sports watch activity tracker uses sweat and dust resistant breathable silicone strap, our Fitness Tracker Smart Watch for Android iOS Phones supports 12 sports modes,walking,running,bicycle,swimming,badminton,basketball,football,rope skipping. This bluetooth calls smart watch for men women is lightweight and stylish, bringing more convenient and relaxing sports experience while also providing more protection.
  • 【Your 24 Hour Personal Daily Health Monitor】Fitness watch for women men full touch screen IP67 waterproof bluetooth smartwatch for Android iOS Phones with heart rate blood pressure monitor multifunction Andriod smart watch with steps counter sleep monitor sports fitness watch, monitoring blood oxygen saturation allows you to understand your physical condition in real time to track fitness progress ,to know your health status in time.
  • 【More Functions Bluetooth Call Smart Watch】This fitness activity smart watch full screen for iPhone and Android phones includes a bunch of new features including:The bluetooth smart watch can hang up the phone, receive and display WhatsAPP /Text /Facebook /Twitter /Messenger reminder.Support sedentary reminder, alarm clock, stopwatch, timer,weather information,music control, remote camera control compatible with Android 5.0 and above or iOS 9.0 and above smartphones.

Know when a hold can be overridden

An APT hold should not be treated as an unbreakable lock. Debian’s apt-get manual documents the --ignore-hold option, which tells apt-get to disregard package holds. Explicit commands and other software may also have their own behavior. If a transaction proposes changing a held package, stop and check the command, options, and package-manager output instead of assuming the hold failed or that the transaction is safe.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Debian and Ubuntu: use APT pinning to influence version selection

APT preferences, commonly called pinning, are for influencing which package version or repository APT considers a candidate. A hold says, in effect, “leave this installed package as it is”; a pin assigns priorities that guide APT’s choice among available versions or sources. These are related tools, not interchangeable commands.

Pinning can be useful when selecting packages from a repository, but repository priorities must be chosen with care. Debian warns that compatibility is usually not guaranteed when packages are mixed across releases. Its guidance for adding non-stable archives alongside stable is to assign those archives lower priorities. A broad or poorly chosen preference can affect more packages than intended.

  • Use a hold if you simply need to keep one installed package unchanged during ordinary APT operations.
  • Use preferences when you intentionally need APT to choose among package versions or sources according to priority.
  • Before adding a repository or writing preferences, consult documentation for the exact Debian or Ubuntu release and the source you intend to use. There is no safe, release-independent preference-file example for every package and repository combination.
  • After changing preferences, inspect the candidate version and the proposed transaction with the tools documented for your APT release before proceeding.

Do not add a repository for another distribution or release merely to obtain one package without understanding its priority and compatibility implications. APT’s candidate-selection rules are more consequential than a simple per-package hold. If your only requirement is to stop an installed package from changing, a hold is usually the more direct and easier-to-audit control.

DNF-based systems: constrain versions with versionlock

DNF’s versionlock feature is provided by a plugin. It filters the versions available to transaction operations and supports commands to add, inspect, and remove locks. The exact plugin package name, availability, and syntax depend on the distribution and release, so check that system’s current DNF documentation before installing or relying on it.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Use the versionlock workflow

  1. Confirm plugin availability: consult the documentation for your DNF distribution. DNF documentation describes the plugin as installable through the dnf-command(versionlock) provide, but that does not establish one universal installation command or package name for every system.
  2. Add a lock: the conceptual command is dnf versionlock add package_name. Verify the accepted syntax for your installed plugin before using it.
  3. Inspect the rules: run dnf versionlock list and check that the intended package rule is present.
  4. Review the transaction: use DNF’s transaction preview or review its proposed changes before confirming an update or install operation.
  5. Remove a lock when it is no longer needed: the conceptual command is dnf versionlock delete package_name. Confirm the exact matching syntax in your plugin documentation; the plugin also documents clear for clearing rules.

The documented interface also includes exclude. Treat it as a plugin operation whose exact arguments and effect should be checked in the manpage installed on your system rather than copied blindly from another release.

Rank #3
New Bee Guitar Cable 10ft Electric Instrument Bass AMP Cord
  • [Low Noise High Fidelity] New bee guitar cord with 22AWG oxygen-free-copper center conductors provides enhanced signal transfer, the PVC insulation material and the high-density stranded copper double shield provide noise rejection for quiet operation
  • [Ideal for Choice] New bee 1/4 straight and right angle metal connectors, ensures a secure connection in any instrument, pedal, or amp jack. L shape great fro on stage guitar stands
  • [Wide Compatible] Suitable for mixer, power amplifier, microphone, effector, decoder, equalizer, electoronic organ, electric guitar, electric bass and other electronic equipments. Widely used in the installation of smart home, karaoke speaker, professional stage audio, etc
  • [Easy Disassemble] Making incidental repairs quick and easy! Very nice, flexible cable
  • [Dont Hesite to Order] 24 hours customer services and professional technology team are standing by

By default, an add rule resolves a package specification into concrete package versions. The plugin also documents a raw mode for broader version patterns. That distinction matters: a rule tied to a concrete version can behave differently from a deliberately broad pattern. Avoid copying a versionlock command from a different DNF distribution or release without checking what rule it will create.

If a lock is no longer needed, remove the matching rule rather than adding another rule that might make later troubleshooting confusing. After deletion or clearing, inspect the list again and review the next transaction so you know which version DNF now considers available.

Arch Linux: skip a package with pacman

Arch provides two ways to tell pacman to ignore a package: a persistent IgnorePkg entry in its configuration, or a one-time --ignore option. Arch warns that partial upgrades are unsupported, so neither method should be treated as routine permission to keep the rest of the system updated while indefinitely leaving one package behind.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Set a persistent IgnorePkg entry

  1. Open /etc/pacman.conf with an editor using the appropriate administrative privileges.
  2. In the [options] section, add or update the entry as IgnorePkg=package_name, substituting the actual pacman package name.
  3. Save the file, then inspect pacman’s output during the next package operation to confirm how it handles the ignored package.
  4. To stop ignoring it, remove its name from the IgnorePkg entry and save the file.

Skip a package for one operation

For a one-time skip, pacman supports the --ignore option. For example, the option can be supplied to an upgrade operation as sudo pacman -Syu --ignore package_name. Omit the option on later commands if you do not want the skip to persist. Check the command’s proposed package changes, and do not turn this into a partial-upgrade routine: Arch explicitly does not support partial upgrades.

An ignored package can still be explicitly upgraded with pacman -S; ArchWiki notes that pacman prompts with a reminder in that case. An ignore rule is therefore not an absolute block against an intentional package operation. If you remove the entry after a temporary workaround, confirm that the next full upgrade evaluates the package normally.

Common problems and safer recovery

The package still appears in an update transaction

First verify the control in the package manager that actually owns the package: check apt-mark showhold, dnf versionlock list, or the IgnorePkg setting as applicable. Then read the exact command and transaction output. APT has an explicit option to ignore holds, and Arch documents that an ignored package may still be explicitly upgraded, so a rule does not imply that every operation is blocked.

Rank #4
BSIMB 15.6" Digital Family Calendar & Chore Chart, No Subscription Fees
  • Digital Family Calendar: BSIMB digital calendar wall touch screen puts an end to your chaotic life. Designed for busy families, the digital calendar keeps you organised and in step with your family. Assign different colours and tasks to each family member to make family scheduling easier and more intuitive.
  • Easy Setup and Auto-Sync: Plug in, connect to WLAN and auto-syn your electric calendar in minutes. Digital wall calendar compatible with Google calendar, iCloud calendar, Outlook calendar, Cozi calendar and Yahoo calendar. Add events directly on the device or through the ecalendar app. Electronic calendar stays current whether you're at work or traveling—no manual updates needed.
  • All-In-One Home Assistant: Smart calendar builds habits and encourage independence with personalised chores. Display daily meal plan to reduce the daily ‘What's for dinner?’ stress. To-do lists keep track of everything you want. Turning chores into valuable achievements with stars and rewards, making life easier and more enjoyable.
  • Manage Anytime Anywhere: BSIMB electronic calendar for family stay connected with the powerful ecalendar app. Access and manage your digital wall calendar anytime, anywhere with free features like stars & rewards, photo screensaver, chore charts, meals plans, to-do lists etc. Electronic planner paid features like Magic Import tailor advanced tools for users with special needs.
  • Stay in Touch with Loved Ones: Share photos or videos from your phone to electronic wall calendar with app, instantly update your life moment, and keep in touch with your family, especially those who are far away; you can also surprise your smart calendar digital wall by sending him a wish card; it's also great for keeping tech-illiterate elders in touch with the youngsters.

You need to update the package after delaying it

Remove the relevant control first: use apt-mark unhold for an APT hold, the plugin’s documented delete operation for a DNF versionlock, or edit pacman’s IgnorePkg entry. For a one-time pacman skip, simply omit --ignore from a later command. Review the package manager’s plan before proceeding.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

A dependency change appears alongside the package

Do not approve a transaction solely because the package you meant to hold or ignore is unchanged. Read the full list of proposed installations, upgrades, and removals; package managers may need to consider related packages as part of a transaction. If the result is unexpected, cancel and check the rule and the distribution’s package-management guidance before trying a broader pin or lock.

The rule was applied to the wrong package name

Package names are manager-specific. A name used by APT is not automatically the name used by DNF or pacman. Recheck the installed package’s spelling in the documentation and in the manager’s own output, then inspect the hold, lock, or configuration entry again. Avoid creating several approximate rules while troubleshooting; remove an incorrect rule once the intended one is confirmed.

You are considering a long delay

There is no universal safe maximum delay established for all packages and systems. The risk depends on the package and the changes being deferred. If you delayed an update because it caused a regression, periodically reconsider the exception and apply a corrected update when appropriate. Avoid disabling security updates across the system as a blanket response to a problem with one package.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Which method should you use?

  • One installed Debian or Ubuntu package should stay as it is: use an APT hold, then verify it with apt-mark showhold.
  • APT should prefer a version or source according to repository priorities: use APT preferences only after checking release-specific guidance and compatibility.
  • A DNF system should constrain versions available to transactions: use the versionlock plugin documented for that distribution and verify the resulting rule.
  • One Arch package should be skipped once: use pacman’s --ignore option for that operation, while respecting Arch’s warning against partial upgrades.
  • An Arch package should be persistently ignored: configure IgnorePkg in /etc/pacman.conf, and revisit the setting rather than treating it as a permanent maintenance strategy.

Operational checklist

  1. Identify the distribution, release, and package manager.
  2. Define whether the exception is one-time, persistent, or a candidate-selection policy.
  3. Record the exact package name and the reason for delaying it.
  4. Apply the manager-specific hold, lock, preference, or ignore rule.
  5. Inspect the rule with the manager’s supported listing or status command.
  6. Preview the next transaction and read all dependency changes.
  7. Revisit the exception when a corrected package is available, then remove the rule before updating.

Frequently Asked Questions

Is an APT hold the same as APT pinning?

No. apt-mark hold asks APT to keep an installed package at its current version and status during ordinary operations. APT preferences, or pinning, assign priorities that influence which package version or repository becomes the candidate. Use a hold for a simple freeze and preferences only when you intentionally need priority-based selection.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

How do I check which packages are held on Debian or Ubuntu?

Run apt-mark showhold. To release one package, use sudo apt-mark unhold package_name, then review the next proposed transaction. Removing a hold permits updates but does not install one automatically.

Can an APT hold ever be ignored?

Yes. The apt-get manual documents --ignore-hold, which tells apt-get to disregard package holds. Explicit commands or other software may also behave differently, so inspect the exact command and transaction output.

How do I remove a DNF versionlock?

Use the versionlock plugin’s documented delete operation, conceptually dnf versionlock delete package_name, and verify the result with dnf versionlock list. Plugin syntax and matching rules vary by distribution and release. The plugin also documents clear for clearing rules.

What is the difference between a one-time pacman ignore and IgnorePkg?

The --ignore option applies only to the command where you provide it. IgnorePkg=package_name in the [options] section of /etc/pacman.conf persists until you edit it. Both need caution because Arch does not support partial upgrades.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Can pacman still upgrade an ignored package?

Yes. ArchWiki notes that an ignored package can still be explicitly upgraded with pacman -S, with pacman prompting a reminder. An ignore rule is therefore not an absolute block against an intentional operation.

Should I add another distribution’s repository to obtain an older package?

Do not do so casually. Debian warns that compatibility is usually not guaranteed when releases are mixed and recommends lower priorities for non-stable repositories added beside stable. Check release-specific repository and preference guidance before changing sources.

How long is it safe to keep a package held or ignored?

There is no universal safe maximum. The appropriate delay depends on the package, its dependencies, and the reason for the exception. Revisit a regression workaround periodically and apply a corrected update when appropriate instead of disabling security updates broadly.

The Bottom Line

Use apt-mark hold for a straightforward Debian or Ubuntu freeze, APT preferences when you need deliberate candidate priorities, DNF versionlock to constrain transaction versions, and pacman’s --ignore or IgnorePkg for a carefully managed Arch exception. Always verify the rule, inspect the full transaction, and remove the delay when the underlying problem is resolved.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.