Posts

Showing posts with the label apt

Using Docker to find out what apt get update does!

Using Docker to find out what apt get update does! While I dabble in System Administration, I dont have a deep knowledge how packages are created or maintained. Today, well see how to use Docker to increase my understanding of "apt-get update". I was curious about this command because I read that its good practice to remove the files created during the update process. I started a small container using docker run -i -t debian:wheezy /bin/bash In another window, I found the ID of the running container using "docker ps". Lets pretend that ID starts with "45...". Look for any changed files using docker diff "45" Youll see nothing displayed. Now run "apt-get update" in the wheezy container. Then run the diff command again. You should see the following differences: C /var C /var/lib C /var/lib/apt C /var/lib/apt/lists A /var/lib/apt/lists/http.debian.net_debian_dists_wheezy-updates_Release A /var/lib/apt/lists/http.debian.net_debian...

Using apt terminal command in Ubuntu

Using apt terminal command in Ubuntu Yes, you read that right, it is apt instead of apt-get . I was used with apt-get command to install, update and remove repositories packages. apt command compared to apt-get has a few advantages:  coloring and progress bar when you install or update a package. One downside of using apt command is the partial support of tab completion, which apt-get has mastered it. And I know that tab completion is very usefull. In terms of functionality, its almost the same as apt-get command. Even the commands are very similar. 1. Update repositories with apt: sudo apt update 2. List upgradable packages: sudo apt list --upgradable 3. Install/update a package: sudo apt install wget 4. Remove a package: sudo apt remove vim For more informations read the apt command manual: man apt download  file  now

Using apt get terminal command in Ubuntu

Using apt get terminal command in Ubuntu By using apt-get terminal command in Ubuntu, you will be able to serach, install, update and remove Ubuntu applications from repositories. To resynchronize the package index files from their sources via Internet, also known as repositories. You need to do this after each edit of your repositories file /etc/apt/sources.list : sudo apt-get update To install the newest versions of all packages currently installed on the system: sudo apt-get upgrade Install is followed by one or more packages (programs) desired for installation. If package is already installed it will try to update to latest version. sudo apt-get install package-name To uninstall a package: sudo apt-get remove package-name To uninstall a package and remove all of its settings: sudo apt-get remove --purge package-name If you have terminated an installation, you can clean it with: sudo apt-get clean All the terminal options for apt-get can be found running: sudo apt-get --help It wil...

Using rmadison and apt cache

Using rmadison and apt cache rmadison is part of the devscripts package. Its a fantastic little tool that tells you which version of a package is in which release of Ubuntu or Debian. Its also the quickest way to see if a package is in one of them at all - very handy to check package requests on Launchpad and in Brainstorm. apt-cache is part of the default Ubuntu install. Its very handy to find the right package name, dependencies, and other clues when tracking down the correct package for Launchpad or Brainstorm. download  file  now