### Build and Install Lastore Daemon Source: https://github.com/linuxdeepin/lastore-daemon/blob/master/README.zh_CN.md Commands to build the Lastore Daemon using make and then install it. Alternatively, it shows how to generate a .deb package and install it using dpkg. ```bash make sudo make install ``` ```bash debuild -uc -us ... sudo dpkg -i ../lastore-daemon*deb ``` -------------------------------- ### Install Prerequisites (Debian/Ubuntu) Source: https://github.com/linuxdeepin/lastore-daemon/blob/master/README.md Installs necessary build and runtime dependencies for Lastore Daemon on Debian-based systems using apt-get. ```bash sudo apt-get install make \ golang-go \ pkg-config \ libglib2.0-dev ``` -------------------------------- ### Build and Install Lastore Daemon Source: https://github.com/linuxdeepin/lastore-daemon/blob/master/README.md Commands to build the Lastore Daemon from source using 'make' and install it system-wide. ```bash make ``` ```bash sudo make install ``` -------------------------------- ### Query Package Desktop Path via D-Bus Source: https://github.com/linuxdeepin/lastore-daemon/blob/master/README.md Example of using 'dbus-send' to interact with the Lastore Daemon system service to retrieve the desktop path of an installed package. ```bash dbus-send --print-reply --system --dest=org.deepin.dde.Lastore1 /org/deepin/dde/Lastore1 org.deepin.dde.Lastore1.Manager.PackageDesktopPath string:"gedit" ``` -------------------------------- ### Generate and Install Debian Package Source: https://github.com/linuxdeepin/lastore-daemon/blob/master/README.md Steps to generate a Debian package for Lastore Daemon and install it using dpkg. ```bash debuild -uc -us ... ``` ```bash sudo dpkg -i ../lastore-daemon*deb ``` -------------------------------- ### Configure Broken Packages with dpkg Source: https://github.com/linuxdeepin/lastore-daemon/blob/master/HACKING.org This command is used to fix a broken system state by configuring pending package installations or upgrades when dpkg is in a dirty status. ```sh dpkg --configure -a ``` -------------------------------- ### APT pmstatus: Package Manager Status Reporting Source: https://github.com/linuxdeepin/lastore-daemon/blob/master/progress-reporting.md Reports the status of the package manager (dpkg) during package installation or removal. It includes the package name, total percentage of progress, and a human-readable description of the current action. This format is used by APT frontends to display installation progress. ```bash # ./apt-get install -o APT::Status-Fd=2 3dchess >/dev/null pmstatus:3dchess:20:Preparing 3dchess pmstatus:3dchess:40:Unpacking 3dchess pmstatus:3dchess:60:Preparing to configure 3dchess pmstatus:3dchess:80:Configuring 3dchess pmstatus:3dchess:100:Installed 3dchess ``` -------------------------------- ### APT media-change: Media Change Notification Source: https://github.com/linuxdeepin/lastore-daemon/blob/master/progress-reporting.md Notifies the user about a required media change, such as inserting a CD or DVD. It includes the medium identifier, the drive path, and a human-readable message prompting the user for action. This is common during installations from removable media. ```bash media-change: Ubuntu 5.10 _Breezy Badger_ - Alpha i386 (20050830):/cdrom/:Please insert the disc labeled: 'Ubuntu 5.10 _Breezy Badger_ - Alpha i386 (20050830)' in the drive '/cdrom/' and press enter. ``` -------------------------------- ### APT pmerror: Package Manager Error Reporting Source: https://github.com/linuxdeepin/lastore-daemon/blob/master/progress-reporting.md Reports errors encountered by the package manager during operations. The format includes the deb file path, the percentage of progress at which the error occurred, and a detailed error string. This is crucial for diagnosing installation failures. ```bash pmerror: /var/cache/apt/archives/krecipes_0.8.1-0ubuntu1_i386.deb : 75% : trying to overwrite `/usr/share/doc/kde/HTML/en/krecipes/krectip.png', which is also in package krecipes-data ``` -------------------------------- ### lastore-tools Command Usage Source: https://github.com/linuxdeepin/lastore-daemon/blob/master/README.zh_CN.md Displays the help information for the `lastore-tools` command, outlining its usage, version, available commands (update, test, help), and global options (debug, help, version). ```bash % lastore-tools -h ``` -------------------------------- ### Standard GPL Program Notice (Source File Header) Source: https://github.com/linuxdeepin/lastore-daemon/blob/master/LICENSES/GPL-3.0-or-later.txt This is the recommended header to include at the beginning of each source file when distributing software under the GNU GPL. It provides a brief program description, copyright information, and links to the license details. ```text Copyright (C) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . ``` -------------------------------- ### APT pmconffile: Configuration File Status Source: https://github.com/linuxdeepin/lastore-daemon/blob/master/progress-reporting.md Indicates the status of configuration files during package upgrades. It provides information about whether the configuration file was user-edited, distribution-edited, or if a conflict resolution is needed. The percent field indicates the progress in handling configuration files. ```bash pmconffile:conffile:percent:'current-conffile' 'new-conffile' useredited distedited ``` -------------------------------- ### APT dlstatus: Download Status Reporting Source: https://github.com/linuxdeepin/lastore-daemon/blob/master/progress-reporting.md Reports the progress of package downloads. It includes the number of already downloaded packages, the total download percentage, and a description of the download status, often including estimated remaining time. This helps users monitor download progress. ```bash dlstatus:1:9.05654:Downloading file 1 of 3 (4m40s remaining) dlstatus:1:9.46357:Downloading file 1 of 3 (4m39s remaining) dlstatus:1:9.61022:Downloading file 1 of 3 (4m38s remaining) ``` -------------------------------- ### GPL Notice for Terminal Interaction Source: https://github.com/linuxdeepin/lastore-daemon/blob/master/LICENSES/GPL-3.0-or-later.txt This notice is for programs that interact with the user via a terminal. It displays copyright information and informs the user about the software's warranty status and redistribution terms. ```text Copyright (C) This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. ``` -------------------------------- ### Mask Systemd Service for Notifications Source: https://github.com/linuxdeepin/lastore-daemon/blob/master/README.zh_CN.md Commands to disable automatic system upgrade notifications by masking the `lastore-build-system-info.service` and `lastore-update-metadata-info.timer` systemd units. ```bash rm /var/lib/lastore/update_infos.json systemctl mask lastore-build-system-info.service systemctl mask lastore-update-metadata-info.timer ``` -------------------------------- ### Disable System Upgrade Notifications Source: https://github.com/linuxdeepin/lastore-daemon/blob/master/README.md Instructions to disable automatic system upgrade notifications by removing a file and masking a systemd service. ```bash rm /var/lib/lastore/update_infos.json ``` ```bash systemctl mask lastore-build-system-info.service ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.