mount_ISO_repo mount # to mount the repo To avoid repeated typing, save the script bellow as mount_ISO_repo, change the path of ISO files and run it when needed like this sudo. Wrapping up everything in a simple shell scriptĮnjoy free shipping and One-Day delivery, cancel any time. now run sudo apt-get updateĭone, now you can install packages from this offline repository by running sudo apt-get install your_package_name # example deb file:///media/repo_1/ jessie main contribĭeb file:///media/repo_2/ jessie main contribĭeb file:///media/repo_3/ jessie main contrib 4. edit the /etc/apt/sources.list file to add the repositoryĮdit the /etc/apt/sources.list file with text editor of your choice, like gedit or nano and add those lines bellow. Replace $USER with your user name, or change the path of ISO files to where you Downloaded them. Sudo mount -o loop /home/$USER/Downloads/debian-8.0.0-amd64-DVD-3.iso /media/repo_3/ Sudo mount -o loop /home/$USER/Downloads/debian-8.0.0-amd64-DVD-2.iso /media/repo_2/ sudo mount -o loop /home/$USER/Downloads/debian-8.0.0-amd64-DVD-1.iso /media/repo_1/ mount the ISO filesĪssuming you have all the three Debian 8.0.0 installer DVD ISO files on your ~/Downloads folder, mount them one by one. Create the folders (mountpoint) to mount the ISO files sudo mkdir -p /media/repo_1 edit the /etc/apt/sources.list file to add the repositoryġ. Create the folders (mountpoint) to mount the ISO files
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |