LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   opensuse 11.3 Local Repo (https://www.linuxquestions.org/questions/linux-server-73/opensuse-11-3-local-repo-845837/)

lealsaballos 11-22-2010 11:49 AM

opensuse 11.3 Local Repo
 
hi all!

Last week I successfully configured a local repository for CentOS. I did it because I'm teaching a course with this distro.

I am also teaching another course with opensuse, sadly, I could not configure a local repository for opensuse. I thought this would be easier.

Local internet connection is very slow, so I need to configure the local repository.

I have searched for information on the novell site and find nothing.

All help is very welcome, thank you.

udaman 11-22-2010 12:17 PM

You can add a local repo with the 'zypper' commnad:

Code:

zypper ar my/dir/with/rpms local
the 'ar' is add repository, the directory can be /mnt/cdrom/xxxxx if you have your rpm files on CD, and 'local' is the repo name.

See:http://en.opensuse.org/SDB:Zypper_us...g_repositories

udaman 11-22-2010 03:07 PM

I forgot to add: you can then install from the local repo with zypper.
Code:

cd my/dir/with/rpms
zypper install *.rpm


lealsaballos 11-22-2010 03:08 PM

Quote:

Originally Posted by udaman (Post 4167266)
You can add a local repo with the 'zypper' commnad:

Code:

zypper ar my/dir/with/rpms local

ok, I got it, but I also need bring access to other hosts via web.

The main idea is setting up a web server, and create a http repository.

Last week I made it using CentOS, I found some informations at centos's wiki. But it was impossible to find similar information at novell web sites.

lealsaballos 11-22-2010 03:12 PM

Quote:

Originally Posted by udaman (Post 4167396)
I forgot to add: you can then install from the local repo with zypper.
Code:

cd my/dir/with/rpms
zypper install *.rpm


And I forgot to say Thanks because I didn't know about zypper, look like a very nice tool.

Once again Thanks

udaman 11-22-2010 04:11 PM

Code:

zypper ar  http://my.web.server.repository/suse/11.3 local_web

lealsaballos 11-22-2010 04:29 PM

Quote:

Originally Posted by udaman (Post 4167453)
Code:

zypper ar  http://my.web.server.repository/suse/11.3 local_web

Wow, that was cool, jejeje

Thanks


All times are GMT -5. The time now is 11:01 PM.