Tag Info

Hot answers tagged

381

To get a list of packages installed locally do this in your terminal: dpkg --get-selections | grep -v deinstall To save that list to a text file called packages on your desktop do this in your terminal: dpkg --get-selections | grep -v deinstall > ~/Desktop/packages (you don't need to run this as the superuser, so no sudo necessary here)


230

APT is a package management system for Debian and other Linux distributions based on it, such as Ubuntu. For the most part, APT is easy to use for installing, removing, and updating packages. In rare instances, often when you are mixing in third-party dependencies, there is a chance that apt-get may end up giving you an error telling you that a package ...


213

According to an article on debian-administration.org, If the dependencies have changed on one of the packages you have installed so that a new package must be installed to perform the upgrade then that will be listed as "kept-back". That article says sudo apt-get dist-upgrade will force the installation of those newer packages. Note: dist-upgrade ...


159

Try this: sudo apt-get update # Fetches the list of available updates sudo apt-get upgrade # Strictly upgrades the current packages sudo apt-get dist-upgrade # Installs updates (new ones)


122

You can simply check if the file /var/run/reboot-required exists or not. For example, any of these would tell you "no such file" or "file not found" if you do not need to reboot, otherwise they will show information about the file: file /var/run/reboot-required stat /var/run/reboot-required ls /var/run/reboot-required In a bash script, you can use: ...


116

Now go to Synaptic Package Manager (System > Administration > Synaptic Package Manager) Click search button and type package name. When you find package select it and go to Package (in menu) and click Lock Version. and you are done, now that package will not show in update manager and it will not be updated. There are four ways of holding back ...


115

Programs A quick way of backing up a list of programs is to run this: dpkg --get-selections > ~/Package.list sudo cp -R /etc/apt/sources.list* ~/ sudo apt-key exportall > ~/Repo.keys It will back them up in a format that dpkg can read for after your reinstall, like this: sudo apt-key add ~/Repo.keys sudo cp -R ~/sources.list* /etc/apt/ sudo ...


103

This is actually a feature of Ubuntu. There is no problem with updating the software with its latest version, and Ubuntu developers might do it easily. And, actually, it is done in several other Linux distributions, including Arch. As you have noticed, Ubuntu software is updated only with security updates and critical bug fixes. All features are "frozen", ...


97

To get just the packages which were expressly installed (not just installed as dependencies), you can run aptitude search '~i!~M' This will also include a brief description, which you may want. If not, use the option -F '%p', as mentioned by karthick87. Yet another option seems to be to copy the file /var/lib/apt/extended_states, which is a text file ...


95

The package unattended-upgrades provides functionality to install security updates automatically. You could use this, but instead of configuring the automatic part you could call it manually. For this case, the following should do it: sudo unattended-upgrade This assumes that the package is installed by default, which it probably is. If not, just do: ...


93

Probably the most popular package managers are apt-get, aptitude, synaptic, and Software Center. There are others (Linux Mint has its own, and there are some designed for KDE), but these are the ones you'll run into most often. apt-get is a simple command-line tool. It's handy if you know the exact package name of what you want to install and don't want to ...


90

Create a backup of what packages are currently installed: dpkg --get-selections > list.txt Then (on another system) restore installations from that list: dpkg --clear-selections sudo dpkg --set-selections < list.txt To get rid of stale packages sudo apt-get autoremove To get installed like at backup time (i.e. to install packages set by dpkg ...


89

apt-get remove packagename will remove the binaries, but not the configuration or data files of the package packagename. It will also leave dependencies installed with it on installation time untouched. apt-get purge packagename or apt-get remove --purge packagename will remove about everything regarding the package packagename, but not the dependencies ...


84

As far as I can see, in 10.04, the main differences between aptitude and apt-get are: aptitude adds explicit per-package flags, indicating whether a package was automatically installed to satisfy a dependency: you can manipulate those flags (aptitude markauto or aptitude unmarkauto) to change the way aptitude treats the package. apt-get keeps track of ...


82

Check out Keryx, it's an offline repository manager. How does it work? It lets you download updates and new programs (with dependencies) to your flash drive. Its interface is similar to synaptic but it works from a pendrive (it doesn't need installation). Unfortunately, the GUI needs wxwidgets, which don't come preinstalled on Ubuntu (they're ...


72

Open the Terminal and enter the commands below one by one: sudo apt-get clean cd /var/lib/apt sudo mv lists lists.old sudo mkdir -p lists/partial sudo apt-get clean sudo apt-get update


69

Whenever you receive from the command apt-get upgrade the message The following packages have been kept back: then to upgrade one or all of the kept-back packages, without doing a distribution upgrade (this is what dist-upgrade does, if I remember correctly) is to issue the command: apt-get install <list of packages kept back> this will resolve ...


64

This is a generic answer to the question about the effects of purging packages generally. For advice specific to your situation, you'll have to edit your question to include additional information--in particular, the complete and exact text of the error message you are getting. Removing packages with sudo apt-get purge ... or sudo apt-get --purge remove ... ...


62

If you have the version number, or the target release, apt-get supports choosing a particular version or target release. More details can be found on manual page of apt-get. It can also be accessed from terminal by typing man apt-get sudo apt-get install <package-name>=<package-version-number> OR sudo apt-get -t=<target release> install ...


60

An Ubuntu release goes through several stages before it actually makes it to the public as a finished product: Some time before Ubuntu launches a release it freezes its packages at a certain point. Before a release is out but after the package freezing, work is done mostly to fix all the bugs and issues that there might be in those packages. New package ...


57

Think of it as a great river, with the people who write the software as the source of the river. They would be the upstream, futher downstream would be your distribution, and at the end of the river would be the user. Ubuntu is in the middle of the river. Upstream would be the software that Ubuntu packages and ships to users. Things like GNOME, Firefox, ...


56

Usually you can just use: make uninstall or sudo make uninstall if the app was installed as root. But this will work only if the developer of the package has taken care of making a good uninstall rule. In the future to avoid that kind of problems try to use checkinstall instead of make install whenever possible (AFAIK always unless you want to keep ...


56

Based on the errors you pasted in the comments section of my previous answer, I have another possible solution: sudo apt-get clean cd /var/lib/apt sudo mv lists lists.old sudo mkdir -p lists/partial sudo apt-get clean sudo apt-get update This will rebuild the cache. Courtesy:http://ubuntuforums.org/showthread.php?t=1983220#8


54

Use the command: apt-cache policy <packageName> This gives you information of all available package versions. Example: alaa@aa-lu:~$ apt-cache policy vlc vlc: Installed: 2.0.8-0ubuntu0.13.04.1 Candidate: 2.0.8-0ubuntu0.13.04.1 Version table: *** 2.0.8-0ubuntu0.13.04.1 0 500 http://ae.archive.ubuntu.com/ubuntu/ ...


50

You can use dpkg command to find out which package owns a file: From man dpkg: -S, --search filename-search-pattern... Search for a filename from installed packages. Example: $ dpkg -S /bin/ls coreutils: /bin/ls You can either search with a full path or with just the filename. If you wish to search for files not yet installed on ...


50

Command to list recently installed packages that were installed via any method (apt-get, Software Center et al.): cat /var/log/dpkg.log | grep "\ install\ " Example output: 2010-12-08 15:48:14 install python-testtools <none> 0.9.2-1 2010-12-08 15:48:16 install quickly-widgets <none> 10.09 2010-12-08 22:21:31 install libobasis3.3-sdk ...


48

To list all packages intentionally installed by apt commands, run the following : ( zcat $( ls -tr /var/log/apt/history.log*.gz ) ; cat /var/log/apt/history.log ) | egrep '^(Start-Date:|Commandline:)' | grep -v aptdaemon | egrep '^Commandline:' This provides a reverse time based view, with older commands listed first: Commandline: apt-get install k3b ...


48

As far as I understand your requirements, the madison option for apt-cache does what you want: madison /[ pkg(s) ] apt-cache's madison command attempts to mimic the output format and a subset of the functionality of the Debian archive management tool, madison. It displays available versions of a package in a tabular format. Unlike the original madison, ...



Only top voted, non community-wiki answers of a minimum length are eligible