温馨提示×

Ubuntu Notepad版本更新

小樊
59
2025-09-21 18:36:44
栏目: 智能运维

Note: There is no official “Ubuntu Notepad” application pre-installed or maintained by Ubuntu. The default text editor in Ubuntu is gedit, and popular third-party alternatives include Notepad++ (via Snap/PPA), Notepadqq (PPA), and Notepad Next (cross-platform). Below are update methods for these common text editors:

1. gedit (Default Ubuntu Text Editor)

gedit is integrated into Ubuntu’s default repositories. To update it:

  • Command Line: Run sudo apt update && sudo apt upgrade gedit. This updates the package list and upgrades gedit to the latest version available in Ubuntu’s repositories.
  • Graphical Interface: Open the “Software Updater” (search for “Software Updater” in the Activities overview), and it will list available updates for gedit and other system packages. Click “Install Now” to apply updates.

2. Notepad++ (via Snap Package – Recommended)

Notepad++ is available as a Snap package, which simplifies updates:

  • Command Line: Run sudo snap refresh notepad-plus-plus. This automatically checks for and installs the latest version of Notepad++ from the Snap Store.
  • Verification: After running the command, restart Notepad++ to ensure the update takes effect.

3. Notepad++ (via APT Repository)

If you installed Notepad++ from its official APT repository:

  • Command Line:
    1. Update the package list: sudo apt update.
    2. Upgrade Notepad++: sudo apt upgrade notepad-plus-plus.
  • Note: Ensure the repository is added correctly (via sudo nano /etc/apt/sources.list.d/notepad-plus-plus.list) before updating.

4. Notepadqq (PPA – Alternative to Notepad++)

Notepadqq is a Linux-friendly alternative to Notepad++:

  • Command Line:
    1. Update the package list: sudo apt update.
    2. Upgrade Notepadqq: sudo apt upgrade notepadqq.
  • Note: If you haven’t added the PPA yet, use sudo add-apt-repository ppa:notepadqq-team/notepadqq and sudo apt update to install it first.

5. Notepad Next (Cross-Platform – Latest Features)

Notepad Next is a modern, cross-platform text editor with frequent updates:

  • Command Line: Run sudo snap refresh notepad-next (if installed via Snap) or use the distribution’s package manager (e.g., sudo apt upgrade notepad-next if available in your repos).
  • Latest Version: As of June 2025, Notepad Next 0.12 introduces custom toolbars, multi-shortcut binding, and search result highlighting. Check the official website for release notes.

General Tips for Updating Text Editors

  • Check Installed Package: Use dpkg -l | grep -E "gedit|notepad\+\+|notepadqq|notepad-next" to confirm which editor is installed.
  • Auto-Updates: Enable automatic updates for Snap packages (default) or APT repositories (via sudo apt install unattended-upgrades) to keep editors current.
  • Logs: View update history for text editors in /var/log/apt/history.log (APT) or journalctl -u snapd (Snap).

0